(ancestors+ h x)
(assoc-nil e attr v)
assoc iff existing value is nil
, including when (contains? e nil)
returns true.
assoc iff existing value is `nil`, including when (contains? e nil) returns true.
(conjs-any v1 v2)
Given two values, performs to-many conj.
Given two values, performs to-many conj.
(derive-pairs xs)
(derive-pairs h xs)
Given a seq of child - parent pairs, [c1 p1 c2 p2 ...], derives them into the given hierarchy, or into a new one if not supplied. The child and parent can be cardinality many, and will be distributed combinatorially.
Given a seq of child - parent pairs, [c1 p1 c2 p2 ...], derives them into the given hierarchy, or into a new one if not supplied. The child and parent can be cardinality many, and will be distributed combinatorially.
(descendants+ h x)
(get-process-name)
Returns java process name. On most systems it will be of the form pid@user.
Returns java process name. On most systems it will be of the form pid@user.
(get-process-pid)
Returns java process pid.
Returns java process pid.
(get-source-dirs)
Get project source paths from classpath.
Get project source paths from classpath.
(index-comparator v)
Given a vector, returns a comparator by element indices.
Given a vector, returns a comparator by element indices.
(map-all f pad & colls)
Like map but exhausts all colls.
Like map but exhausts all colls.
(mapcat-lazy f coll)
Fully lazy version of mapcat.
Fully lazy version of mapcat.
(merge-deep & args)
Like merge, but merges recusively. Maps are merged via merge semantics, and vectors are merged positionally.
Like merge, but merges recusively. Maps are merged via merge semantics, and vectors are merged positionally.
(merge-hierarchies & h)
Merges hierarchies, extrapolating transitive relationships, and checking for cyclical derivations.
Merges hierarchies, extrapolating transitive relationships, and checking for cyclical derivations.
(qonj q n x)
Enqueues x, popping if queue size exceeds n.
Enqueues x, popping if queue size exceeds n.
(queue)
(queue & xs)
(remove-nth coll n)
If you really must, removes the nth element of a vector. But consider using a hashed map instead.
If you really must, removes the nth element of a vector. But consider using a hashed map instead.
(seqify x)
Coerces x into vector if isn't already sequential.
Coerces x into vector if isn't already sequential.
(setify x)
Coerces x into set if isn't already.
Coerces x into set if isn't already.
(split-keys m & ks)
Given a map, and a set of key vectors, returns a seq of maps corresponding to a select-keys with each key vector. A map containing the remaining elements that were not selected is returned as the final element of the sequence.
Given a map, and a set of key vectors, returns a seq of maps corresponding to a select-keys with each key vector. A map containing the remaining elements that were not selected is returned as the final element of the sequence.
(update-contains e attr f & args)
Only update if value exists at the given attr.
Only update if value exists at the given attr.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close