Package: alexandria

Macro destructuring-ccase

Lambda List

destructuring-ccase (keyform &body clauses)

Syntax

clauses ::= ((case-keys . destructuring-lambda-list) form*)

Details

The macro destructuring-ccase is a combination of the Common Lisp macros ccase and destructuring-bind.

keyform must evaluate to a cons. The clause whose case-keys matches car of key, as if by ccase is selected, and forms are then executed with cdr of key is destructured and bound by the destructuring-lambda-list.
 

See also