Re: Help with Macros and Matchure

2012-06-08 Thread JvJ
Well, I'm the dumbest person ever. Here's the solution: (if-match [(and ?c (contains? *chars* c)) "Trip"] c) On Jun 7, 4:48 pm, JvJ wrote: > Hi, > > I've recently started using the matchure library for pattern matching > (https://github.com/dcolthorp/matchure). > > Basically, I'd like match a

Help with Macros and Matchure

2012-06-07 Thread JvJ
Hi, I've recently started using the matchure library for pattern matching (https://github.com/dcolthorp/matchure). Basically, I'd like match a number of different values and bind the first match to a symbol. In matchure, binding to a variable can be done like this: (if-match [(and ?c "Hi") "Hi"