Nic Ferrier

Results 107 comments of Nic Ferrier

Is the inspiration for shadchen the [matcher](http://docs.racket-lang.org/reference/match.html) in racket? It seems so. If so I'll try to use that as inspiration for any extra patterns I define? I'd like to...

It's something that let's you match many things: ``` (match (list 1 2 3 4 5 6) ((list 1 ___ (tail a)) a))) => 6 ```

Hum. Ok. I'll look. Slightly related - how about declaring a specific index for the macros? ``` (match value (matches...)) ``` eg: ``` (defmacro ... (declare (indent 1) ...) ...)...

Yeah, so further to your comment, this works: ``` (match (number-sequence 1 10) ((append (list 1) _ (list y)) y)) => 10 ```

I definitely will look into the implementation. Particularly if I can find a problem that causes it to be a pain. [email protected] writes: > I think its worth looking into...

Bizarrely when I come to use it again it doesn't work! weird!

The append. I need to add a test I guess.