chickadee » contracts » bind-case

(bind-case xpr (pat0 . body0) (pat1 . body1) ...)syntax

matches nested pseudolist-expression xpr against patterns pat0 pat1 ... in sequence, binding the variables of the first matching pattern to corresponding subexpressions of xpr and executes body of the first matching pattern in this context.