pattern matching
Libraries adding data-structure pattern matching operations to Common Lisp.

We recommend optima for ML-style pattern matching.

See also:

  • Screamer
  • EEL
  • destructuring-bind can be used to bind variables to components of a tree, but does not provide for multiple alternative patterns.
  • typecase can be used to test structures against a pattern (type), but does not destructure.