(max-key :power mario luigi)
On Thursday, January 31, 2013 6:08:21 PM UTC-8, Leandro Moreira wrote:
>
> Running through this problem I also faced the weird situation, so:
>
> Given two maps
> (def mario {:color "red" :power 45})
> (def luigi {:color "green" :power 40})
>
> I want the max between both but based on :power key.
> It would be something like this.
>
> (max mario luigi)
> I expect max return not only 45 but the whole map.... Is there any built
> in function for that?
>
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.