Liking cljdoc? Tell your friends :D

nedap.utils.collections.seq

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.
raw docstring

distribute-evenly-byclj

(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.
sourceraw docstring

flattenclj

(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.
sourceraw docstring

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

× close