Liking cljdoc? Tell your friends :D
Clojure only.

clj-util.coll


distinct-byclj

(distinct-by f)
(distinct-by f coll)

Returns a lazy sequence of the elements of coll with duplicates removed. Two elements in coll are duplicates if (= (f element1) (f element2)). Returns a stateful transducer when no collection is provided. NOTE: This was taken from (source distinct) and modified

Returns a lazy sequence of the elements of coll with duplicates removed.
Two elements in coll are duplicates if (= (f element1) (f element2)).
Returns a stateful transducer when no collection is provided.
NOTE: This was taken from (source distinct) and modified
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close