Re: Pattern matching for map content

2011-10-25 Thread Michael Jaaka
Thx, this is exactly what I need. -- 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 fr

Re: Pattern matching for map content

2011-10-25 Thread Ben Smith-Mannschott
On Tue, Oct 25, 2011 at 15:33, Alex Ott wrote: > it's better to use https://github.com/clojure/core.match Thanks, I'd forgotten about core.match. // ben > On Tue, Oct 25, 2011 at 11:32 AM, Ben Smith-Mannschott > wrote: >> On Tue, Oct 25, 2011 at 11:20, Michael Jaaka >> wrote: >>> Hi! >>> Patt

Re: Pattern matching for map content

2011-10-25 Thread Alex Ott
it's better to use https://github.com/clojure/core.match On Tue, Oct 25, 2011 at 11:32 AM, Ben Smith-Mannschott wrote: > On Tue, Oct 25, 2011 at 11:20, Michael Jaaka > wrote: >> Hi! >> Pattern matching is fine for sequence or vector destruction. >> Is is possible to destruct map and make pattern

Re: Pattern matching for map content

2011-10-25 Thread Ben Smith-Mannschott
On Tue, Oct 25, 2011 at 11:20, Michael Jaaka wrote: > Hi! > Pattern matching is fine for sequence or vector destruction. > Is is possible to destruct map and make pattern machting? > For example I would like to make constraint for to some query service. > It would be done as map for example:  { :n

Pattern matching for map content

2011-10-25 Thread Michael Jaaka
Hi! Pattern matching is fine for sequence or vector destruction. Is is possible to destruct map and make pattern machting? For example I would like to make constraint for to some query service. It would be done as map for example: { :name "Tom" :surname "Jakarta" :birthDate (Date.) } or { :pers