Skip to content

clojure.core/max-key

View this page on ClojureDocs

Type: function Added: Clojure 1.0 Examples: 5 Runnable: 5
([k x] [k x y] [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.

Examples

by pkolloch on
by huahaiy on
by garaud on
by sova on
by sofiiahitlan on

See also


Content from the matching ClojureDocs page, with authors credited on each contribution.