> On Aug 26, 2017, at 12:50 PM, Matt Wette <matt.we...@gmail.com> wrote: > > >> On Aug 26, 2017, at 12:47 PM, Arun Isaac <arunis...@systemreboot.net> wrote: >> >> >> Is there a Scheme or Guile equivalent to Emacs Lisp's `when-let' ? >> >> Basically, I'm looking for a shorthand to express this: >> >> (let ((x (foo)) >> (when x >> (bar x)))) >> >> as this: >> >> (when-let (x (foo)) >> (bar x)) >> > > (use-modules (srfi srfi-2)) > > (and-let* ((x foo)) > (bar x))
(and-let* ((x (foo))) (bar x))