Scheme Pattern Matching with @-binding
A simple implementation of basic pattern matching in Scheme, with @-bindings.
In my first post about pattern matching with Scheme, I mentioned that the main feature that I thought was missing was the ability to bind a pattern to an identifier, while still matching on the internals of that pattern.
Haskell has a way of doing it with an @
character, which might look this: func (Just x@[_]) = x
.
In this post I show how I added that functionality to my pattern matching code.
Read More