Mulling on this some more, I think it might be impossible. My reasoning is: I'm trying to do this so I can determine the list of clauses at run-time. But `core.match/match` does its magic at compile time, so it seems unlikely that I'm going to get what I want!
Back to the drawing board ... Jony On Tuesday, 23 September 2014 15:49:45 UTC+1, Jony Hudson 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.