ClojureDocs

Nav

Namespaces

Clojure/Conj 2026 — Charlotte, NC — Sept 30 - Oct 2 Learn More & Get Tickets →

max-key

clojure.core

Available since 1.0 (source)
  • (max-key k x)
  • (max-key k x y)
  • (max-key k x y & more)
Returns the x for which (k x), a number, is greatest.
 If there are multiple such xs, the last one is returned.