Liking cljdoc? Tell your friends :D

cinch.core


ancestors+clj/s

(ancestors+ h x)
source

assoc-nilclj/s

(assoc-nil m attr v)

assoc iff existing value is nil, or not in map.

assoc iff existing value is `nil`, or not in map.
sourceraw docstring

conjsclj/s

(conjs set & args)

Like conj but always set.

Like conj but always set.
sourceraw docstring

conjs-anyclj/s

(conjs-any v1 v2)

Given two values, performs to-many conj.

Given two values, performs to-many conj.
sourceraw docstring

conjvclj/s

(conjv v & args)

Like conj but always vec.

Like conj but always vec.
sourceraw docstring

derive-pairsclj/s

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

descendants+clj/s

(descendants+ h x)
source

get-process-nameclj

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

get-process-pidclj

(get-process-pid)

Returns java process pid.

Returns java process pid.
sourceraw docstring

get-source-dirsclj

(get-source-dirs)

Get project source paths from classpath.

Get project source paths from classpath.
sourceraw docstring

index-comparatorclj/s

(index-comparator v)

Given a vector, returns a comparator by element indices.

Given a vector, returns a comparator by element indices.
sourceraw docstring

map-allclj/s

(map-all f pad & colls)

Like map but exhausts all colls.

Like map but exhausts all colls.
sourceraw docstring

mapcat-lazyclj/s

(mapcat-lazy f coll)

Fully lazy version of mapcat.

Fully lazy version of mapcat.
sourceraw docstring

merge-deepclj/s

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

merge-hierarchiesclj/s

(merge-hierarchies & h)

Merges hierarchies, extrapolating transitive relationships, and checking for cyclical derivations.

Merges hierarchies, extrapolating transitive relationships,
and checking for cyclical derivations.
sourceraw docstring

qonjclj/s

(qonj q n x)

Enqueues x, popping if queue size exceeds n.

Enqueues x, popping if queue size exceeds n.
sourceraw docstring

queueclj

(queue)
(queue & xs)
source

remove-nthclj/s

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

seqifyclj/s

(seqify x)

Coerces x into vector if isn't already sequential.

Coerces x into vector if isn't already sequential.
sourceraw docstring

setifyclj/s

(setify x)

Coerces x into set if isn't already.

Coerces x into set if isn't already.
sourceraw docstring

split-keysclj/s

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

update-containsclj/s

(update-contains m attr f & args)

Only update if value exists at the given attr.

Only update if value exists at the given attr.
sourceraw docstring

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

× close