Functions akin to the https://clojure.org/reference/sequences#_the_seq_library.
All functions contained here should be lazy, else they should live in the eager
ns.
Functions akin to the https://clojure.org/reference/sequences#_the_seq_library. All functions contained here should be lazy, else they should live in the `eager` ns.
(distribute-evenly-by {:keys [f n]
:or {f identity
n (-> (Runtime/getRuntime) .availableProcessors)}
:as options}
coll)
Sorts coll
by f
in such a way that if partitioned by n
, each partition will have items of similar cost.
Refer to the tests for examples.
Sorts `coll` by `f` in such a way that if partitioned by `n`, each partition will have items of similar cost. Refer to the tests for examples.
(flatten x)
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat lazy sequence.
(flatten nil) returns an empty sequence.
Takes any nested combination of sequential things (lists, vectors, etc.) and returns their contents as a single, flat lazy sequence. (flatten nil) returns an empty sequence.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close