On Tue, Jul 24, 2012 at 6:03 AM, Simone Mosciatti wrote:
> Thanks, it was what i thought...
>
> Any other suggestion is still welcome :-)
I don't really understand your example. Can you clarify?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To pos
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
> wrote:
> > Hi everybody,
> > I was looking if it is possible to invert the match macro, an example
On Mon, Jul 23, 2012 at 6:42 PM, Simone Mosciatti 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
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 de