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 ...
Jo
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 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 ab
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