note that i don't care the order between "tom" keys (1234 can be
before 23)
I have seen sort-by but I can't find tutorial how to use keyfn
Michael Jaaka
unread,
Nov 8, 2009, 7:17:43 AM11/8/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Clojure
OK. I have figured it out. I just looked into core.clj and noticed that keyfn is a function which know how to get a value from an element in a collection. That value is just compared with other.