Re: Matching core.match's syntactic keywords

2011-12-25 Thread Herwig Hochleitner
Thanks! Am 23.12.2011 16:10 schrieb "Steve Miner" : > > On Dec 22, 2011, at 10:54 PM, Herwig Hochleitner wrote: > > I want to match vectors of the form [(some expr) :as :label], but #(match > [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a > compiler exception: Unable t

Re: Matching core.match's syntactic keywords

2011-12-23 Thread David Nolen
Ah Steve got to it first. Thanks! On Friday, December 23, 2011, Steve Miner wrote: > > On Dec 22, 2011, at 10:54 PM, Herwig Hochleitner wrote: > > I want to match vectors of the form [(some expr) :as :label], but #(match [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a

Re: Matching core.match's syntactic keywords

2011-12-23 Thread David Nolen
Been a bit busy will look into this and respond later today. On Thursday, December 22, 2011, Herwig Hochleitner wrote: > Hi, > I want to match vectors of the form [(some expr) :as :label], but #(match [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a compiler exception:

Re: Matching core.match's syntactic keywords

2011-12-23 Thread Steve Miner
On Dec 22, 2011, at 10:54 PM, Herwig Hochleitner wrote: > I want to match vectors of the form [(some expr) :as :label], but #(match > [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a > compiler exception: Unable to resolve symbol expr > If you want to match a liter

Re: Matching core.match's syntactic keywords

2011-12-23 Thread Tassilo Horn
Herwig Hochleitner writes: Hi Herwig, > I want to match vectors of the form [(some expr) :as :label], but #(match > [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a > compiler exception: Unable to resolve symbol expr Isn't the order value/key in map pattern? {expr

Matching core.match's syntactic keywords

2011-12-22 Thread Herwig Hochleitner
Hi, I want to match vectors of the form [(some expr) :as :label], but #(match [%] [[expr :as (label :when keyword)]] {:expr expr :label label}) throws a compiler exception: Unable to resolve symbol expr How do I do this? kind regards -- _