While were on the subject, wouldn't it make sense to rename max-key to
max-fn or something? I gather that it is called max-key because you can pass
a keyword as a way to index into a map, but since keywords implement IFn and
in this case they are actually being used as a function, and you can
actually pass a function to max-key:

user> (max-key :b {:a 1 :b 2} {:a 2 :b 3} {:a 3 :b 4})
{:b 4, :a 3}

user> (max-key first [1 2] [2 3] [3 4])
[3 4]

It seems like they might actually be clearer to be named max-fn/min-fn or
something like that. I realize this would me a breaking change, so maybe
it's not worth it? Or maybe it's not as confusing as I think it is?


Paul

--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to