Thanks, it was what i thought... Any other suggestion is still welcome :-)
On Tuesday, July 24, 2012 12:50:47 AM UTC+2, David Nolen wrote: > > On Mon, Jul 23, 2012 at 6:42 PM, Simone Mosciatti <mweb....@gmail.com> > wrote: > > Hi everybody, > > I was looking if it is possible to invert the match macro, an example > worth > > more than 1000 words. > > > > (def x (match [a b] > > [true true] 0.5 > > [false true] 0.6 > > [true false] 0.4 > > [false false] 0.8)) > > > > (max x) > > => [false false] > > (filter odd? x) > > => [true true] > > > > It is possible ? > > > > I am definitely not an expert but it looks like a core.logic task, > doesn't ? > > If you want to go in both directions yes - core.logic is more suitable. > > David > -- 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