You are looking at historical revision 2564 of this page. It may differ significantly from its current revision.

Introduction

Matchable is a drop-in compatible replacement for Chicken's MATCH macro. All forms are provided under the same name, and all features except the ..k pattern are supported.

In addition, matchable supports non-linear patterns, i.e. patterns where an identifier occurs multiple times, requiring all instances of the identifier to be EQUAL?. For example:

 (x _ x)

matches all lists of three elements whose first and third elements are the same.

For full documentation, see Pattern matching.

Requirements

syntax-case

License

public domain

History

1.0
initial release