Not sure but are you looking for something like this? https://github.com/killme2008/defun
On Tue, Sep 23, 2014 at 8:19 PM, Jony Hudson <jonyepsi...@gmail.com> wrote: > OK, this is probably simple, but I can't seem to figure it out. Maybe > someone who understands macros better than me can help :-) > > I'd like to be able to write something like the following: > > (def some-clauses > '[[false _] :f > [true _] :t]) > > (match-clauses [[false 3]] some-clauses) > > but I can't figure out how to write `match-clauses`. If `core.match/match` > were a function it would be easy, but it isn't. Can someone give me a push > in the right direction? > > Thanks, > > > Jony > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.