Pattern matching to a list of terms.
Example:
(pattern-match-list (a b c d) (((cons !c x) 3 (list* !b y) x) (declare (ignore x)) (foo y)) (& default-value)))
Matches a list of terms to a list of pattern clauses. See pattern-match for more documentation of the pattern semantics. The first argument to pattern-match-list should be a list of input terms. (For best efficiency, these terms should be bound variables or simple constants, not containing function calls.) Each subsequent argument should be a pattern clause, consisting of a list of the following items:
The final pattern clause may be of the form
See also pattern-matches-list, which simply tests whether or not a certain pattern list matches the list of inputs.