Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 3, the unsupported old release. You're almost certainly looking for [[/eggref/4/pmatch|the CHICKEN 4 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-4.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[tags: egg]] == pmatch [[toc:]] === Description Macroless ML-style pattern matching. === Author Mayer Goldberg. Packaged as a Chicken extension by Category 5. === Requirements None === Download [[http://code.call-cc.org/legacy-eggs/3/pmatch.egg|pmatch.egg]] === Documentation In the words of the author: This pattern matcher implements ML-style pattern matching in Scheme relatively painlessly. I use it whenever I need to name various sub-expressions of some sexpr, and refer to them by those names. The package is built on the two procedures 'with' and 'match'. The 'with' procedure has been one of my favourite Scheme idioms for quite a while, and you can certainly use it apart [from] any pattern matching. The 'match' procedure is a recent addition to the bag-o'-tricks. The only change made to the author's original code is the renaming of the {{match}} procedure to {{pmatch}} to avoid conflict with Chicken's built-in {{match}}. The following procedures are provided: <procedure>pmatch</procedure> <procedure>map-match</procedure> <procedure>?</procedure> <procedure>with</procedure> <procedure>match-struct</procedure> <procedure>compose-match</procedure> <procedure>compose-match-list</procedure> Please see [[http://www.cs.bgu.ac.il/~gmayer/interests-programming-languages/scheme/patterns/|the author's documentation]] for more information. === License This code is in the public domain
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 13 from 7?