Skip to content

clojure.core/group-by

View this page on ClojureDocs

Type: function Added: Clojure 1.2 Examples: 8 Runnable: 7
([f coll])

Returns a map of the elements of coll keyed by the result of f on each element. The value at each key will be a vector of the corresponding elements, in the order they appeared in coll.

Examples

by mvonrohr on
by Brool on
by Canna71 on
by pavanred on
by statcompute on . May have evaluation errors.
by MicahElliott on
by jimka2001 on
by pikariop on

See also


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