Macro: WHEN-BIND

Documentation

Just like when except VAR will be bound to the result of TEST in BODY.

Source

(defmacro when-bind (var test &body body)
  "Just like when except VAR will be bound to the
  result of TEST in BODY."
  `(if-bind ,var ,test (progn ,@body)))
Source Context