core.match question: how can I escape keywords?

2013-07-22 Thread Yong
I have a sequence of keywords which I want to use match on. However, :when has a special meaning, which means I cannot do something like: (let [x [:ok :when :where]] (match [x] [[_ :when _]] :a0)) which gives a clojure.lang.Compiler$CompilerException: java.lang.AssertionError: Assert

Re: core.match question: how can I escape keywords?

2013-07-22 Thread David Nolen
This is just a bug :when should only have special meaning if it occurs in a list not a vector. Please file a ticket in JIRA: http://dev.clojure.org/jira/browse/MATCH David On Sun, Jul 21, 2013 at 8:54 PM, Yong yong...@10gic.net wrote: I have a sequence of keywords which I want to use match