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

We recommend optima or trivia for pattern matching. For unification, see unification.

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.