Extra Utilities for match
|(require match-plus)||package: match-plus|
(define/match* (head-id args) body)
args = match-expr ... | match-expr ... . rest-expr
Allows inline pattern-matching in simple function definitions with behavior similar to match-lambda**. However, only one match clause may be specified since the match patterns are inline with the formals definition. This means an error will be raised if pattern-matching fails, but it is ideal if a function is already contracted in such a way that successful pattern-matching is guaranteed.
where args* is a list of unique identifiers generated corresponding to each arg.