Liking cljdoc? Tell your friends :D

kineticfire.collections.collection


assoc-inclj/s

(assoc-in m ks-v-seq)
(assoc-in m ks v)

Associates a value in a nested associative structure as with '(clojure.core/assoc-in m ks v)', but also accepts a sequence of key sequence / value pairs to associate multiple values in one call. If any levels do not exist, hash-maps will be created.

For signature 'm ks v': associates the value v in the nested associative structure m at key sequence ks exactly as '(clojure.core/assoc-in m ks v)'. For signature 'm ks-v-seq': behaves as above with ks-v-seq as a sequence with one or more sequences of a key sequence and one value to associate multiple values in one call.

Calling '(assoc-in m ks v)' is equivalent to calling '(clojure.core/assoc-in m ks v)'. Calling '(assoc-in m ks-v-seq)' is equivalent calling '(clojure.core/assoc-in m ks v)' with a reduce function to accumulate the results of associating multiple key sequence / value pairs.

Associates a value in a nested associative structure as with '(clojure.core/assoc-in m ks v)', but also accepts a
sequence of key sequence / value pairs to associate multiple values in one call.  If any levels do not exist,
hash-maps will be created.

For signature 'm ks v': associates the value `v` in the nested associative structure `m` at key sequence `ks` exactly
as '(clojure.core/assoc-in m ks v)'.  For signature 'm ks-v-seq': behaves as above with `ks-v-seq` as a sequence with
one or more sequences of a key sequence and one value to associate multiple values in one call.

Calling '(assoc-in m ks v)' is equivalent to calling '(clojure.core/assoc-in m ks v)'.  Calling
'(assoc-in m ks-v-seq)' is equivalent calling '(clojure.core/assoc-in m ks v)' with a reduce function to accumulate
the results of associating multiple key sequence / value pairs.
sourceraw docstring

contains-value?clj/s

(contains-value? coll val)

Returns boolean 'true' if the value val is contained in the collection coll and 'false' otherwise. For a map, searches values at the current level only.

Where '(clojure.core/contains? coll key)' checks if the key is in the collection, this function tests if a value is contained in the collection.

Returns boolean 'true' if the value `val` is contained in the collection `coll` and 'false' otherwise.  For a map,
searches values at the current level only.

Where '(clojure.core/contains? coll key)' checks if the *key* is in the collection, this function tests if a *value*
is contained in the collection.
sourceraw docstring

contains?clj/s

(contains? coll key-or-seq)

Returns boolean 'true' if the key or key sequence key-or-seq is present in the given collection coll else returns 'false'. For numerically indexed collections like vectors and Java arrays, this tests if the numeric key is within the range of indexes. Suitable for maps, vectors, sets, and strings; NOT suitable for lists. For checking if a value is in the collection, see 'kf-collections/contains-value?'.

When key-or-seq is not a collection or if it has size 1, then this function is equivalent to calling '(clojure.core/contains? coll key)'. When key-or-seq is a collection of size greater than 1, then this function is equivalent to a combination of 'clojure.core/get-in' followed by 'clojure.core/contains?'.

Returns boolean 'true' if the key or key sequence `key-or-seq` is present in the given collection `coll` else returns
'false'.  For numerically indexed collections like vectors and Java arrays, this tests if the numeric key is within
the range of indexes.  Suitable for maps, vectors, sets, and strings; NOT suitable for lists.  For checking if a
*value* is in the collection, see 'kf-collections/contains-value?'.

When `key-or-seq` is not a collection or if it has size 1, then this function is equivalent to calling
'(clojure.core/contains? coll key)'. When `key-or-seq` is a collection of size greater than 1, then this function is
equivalent to a combination of 'clojure.core/get-in' followed by 'clojure.core/contains?'.
sourceraw docstring

dissoc-inclj/s

(dissoc-in m ks)

Disassociates a value in a nested associative structure m, where ks is either a sequence of keys or a sequence of key sequences.

Calling this function where ks is a sequence of keys is equivalent to removing the property at ks with a combination of 'clojure.core/update-in' and 'clojure.core/dissoc'. Calling this function with a sequence of a sequence of keys is equivalent to using a reduce function to accumulate the results from removing multiple sequences of keys using 'update-in' and 'dissoc'.

Disassociates a value in a nested associative structure `m`, where `ks` is either a sequence of keys or a sequence
of key sequences.

Calling this function where `ks` is a sequence of keys is equivalent to removing the property at ks with a combination
of 'clojure.core/update-in' and 'clojure.core/dissoc'.  Calling this function with a sequence of a sequence of keys is
equivalent to using a reduce function to accumulate the results from removing multiple sequences of keys using
'update-in' and 'dissoc'.
sourceraw docstring

duplicatesclj/s

(duplicates coll)

Returns a vector of duplicates found in the collection 'coll'. If no duplicates, then returns an empty vector. For a map, searches values at the current level only.

Where '(clojure.core/distinct x)' returns a lazy sequence of elements with duplicates removed, this function returns a vector of the duplicates.

Returns a vector of duplicates found in the collection 'coll'.  If no duplicates, then returns an empty vector.  For
a map, searches values at the current level only.

Where '(clojure.core/distinct x)' returns a lazy sequence of elements with duplicates removed, this function returns a
vector of the duplicates.
sourceraw docstring

duplicates?clj/s

(duplicates? coll)

Returns boolean 'true' if the collection coll contains at least one duplicate and 'false' otherwise. For a map, searches values at the current level only.

Similar to '(clojure.core/distinct? coll)', but its values are taken separately (e.g., not in a collection) while this function operates on collections.

Returns boolean 'true' if the collection `coll` contains at least one duplicate and 'false' otherwise.  For a map,
searches values at the current level only.

Similar to '(clojure.core/distinct? coll)', but its values are taken separately (e.g., not in a collection) while this
function operates on collections.
sourceraw docstring

not-contains-value?clj/s

(not-contains-value? coll val)

Returns boolean 'false' if the value val is not contained in the collection coll and 'false' otherwise. For a map, searches values at the current level only.

Where '(not (clojure.core/contains? coll key))' checks if the key is not in the collection, this function tess if a value is not contained in teh collection.

Returns boolean 'false' if the value `val` is not contained in the collection `coll` and 'false' otherwise.  For a
map, searches values at the current level only.

Where '(not (clojure.core/contains? coll key))' checks if the *key* is not in the collection, this function tess if a
*value* is not contained in teh collection.
sourceraw docstring

not-contains?clj/s

(not-contains? coll key-or-seq)

Returns boolean 'true' if the key or key sequence key-or-seq is not present in the given collection coll else returns 'false'. For numerically indexed collections like vectors and Java arrays, this tests if the numeric key is within the range of indexes. Suitable for maps, vectors, sets, and strings; NOT suitable for lists. For checking if a value is not in the collection, see 'kf-collections/not-contains-value?'.

When key-or-seq is not a collection or if it has size 1, then this function is equivalent to calling '(not (clojure.core/contains? coll key))'. When key-or-seq is a collection of size greater than 1, then this function is equivalent to a combination of 'clojure.core/get-in' followed by 'clojure.core/contains?' then 'clojure.core/not'.

Returns boolean 'true' if the key or key sequence `key-or-seq` is not present in the given collection `coll` else
returns 'false'.  For numerically indexed collections like vectors and Java arrays, this tests if the numeric key is
within the range of indexes.  Suitable for maps, vectors, sets, and strings; NOT suitable for lists.  For checking if
a *value* is not in the collection, see 'kf-collections/not-contains-value?'.

When `key-or-seq` is not a collection or if it has size 1, then this function is equivalent to calling
'(not (clojure.core/contains? coll key))'. When `key-or-seq` is a collection of size greater than 1, then this
function is equivalent to a combination of 'clojure.core/get-in' followed by 'clojure.core/contains?' then
'clojure.core/not'.
sourceraw docstring

not-duplicates?clj/s

(not-duplicates? coll)

Returns boolean 'true' if the collection coll does not contain a duplicate and 'false' otherwise. For a map, searches values at the current level only.

Similar to '(not (clojure.core/distinct? coll))', but its values are taken separately (e.g., not in a collection) while this function operates on collections.

Returns boolean 'true' if the collection `coll` does not contain a duplicate and 'false' otherwise.  For a map,
searches values at the current level only.

Similar to '(not (clojure.core/distinct? coll))', but its values are taken separately (e.g., not in a collection)
while this function operates on collections.
sourceraw docstring

not-empty?clj/s

(not-empty? coll)

Returns boolean 'true' if the collection coll is not empty and 'false' otherwise. Suitable for vectors, lists, maps, and strings. Uses an implementation with the recommended idiom '(seq coll)' but is more readable, regardless of experience.

Returns boolean 'true' if the collection `coll` is not empty and 'false' otherwise.  Suitable for vectors, lists,
maps, and strings.  Uses an implementation with the recommended idiom '(seq coll)' but is more readable, regardless of
experience.
sourceraw docstring

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

× close