Liking cljdoc? Tell your friends :D

thi.ng.common.data.core


all-afterclj/s

(all-after item coll)

Returns a new collection of all items after item in original coll. If coll is a vector, the new collection is created with subvec. Returns original coll if item isn't found.

Returns a new collection of all items after `item` in original `coll`.
If `coll` is a vector, the new collection is created with `subvec`.
Returns original coll if item isn't found.
sourceraw docstring

append-firstclj/s

(append-first xs)
source

apply-to-keysclj/s

(apply-to-keys type keys f & args)

Applies f with args to all given keys in type.

Applies `f` with `args` to all given `keys` in `type`.
sourceraw docstring

bisectclj/s

(bisect f coll)
(bisect f f2 coll)
source

cartesian-productclj/s

(cartesian-product & seqs)

All the ways to take one item from each sequence (taken from clojure.contrib.combinatorics)

All the ways to take one item from each sequence
(taken from clojure.contrib.combinatorics)
sourceraw docstring

check-intervalsclj/s

(check-intervals & ivals)
source

collect-indexedclj/s

(collect-indexed f f2 coll)
source

collect-setclj/s

(collect-set f coll)
source

demunge-flagsclj/s

(demunge-flags kw xs)

Takes a keyword or string and string/seq of items, returns map with items as keys and boolean values indicating if an item has been found in the string representation of the kw. If kw is nil, returns nil.

(demunge-flags :cad "abcd")
#_=> {:a true :b false :c true :d true}
Takes a keyword or string and string/seq of items, returns map with
items as keys and boolean values indicating if an item has been
found in the string representation of the kw. If `kw` is nil, returns
nil.

    (demunge-flags :cad "abcd")
    #_=> {:a true :b false :c true :d true}
sourceraw docstring

demunge-flags-seqclj/s

(demunge-flags-seq kw xs)

Like demunge-flags but returns lazyseq of booleans in same order as xs.

(demunge-flags-seq :cad "abcd") #_=> [true false true true]

Like `demunge-flags` but returns lazyseq of booleans in same order as xs.

(demunge-flags-seq :cad "abcd")
#_=> [true false true true]
sourceraw docstring

filter-treeclj/s

(filter-tree f root)

Applies f to root coll and every of its (nested) elements. Returns a vector of items for which f returned a truthy value.

Applies `f` to root coll and every of its (nested) elements. Returns
a vector of items for which `f` returned a truthy value.
sourceraw docstring

indexclj/s

(index i t)
source

index!clj/s

(index! i t)
source

index-kvclj/s

(index-kv m k v)
source

index-kv!clj/s

(index-kv! m k v)
source

index-ofclj/s

(index-of coll item)
source

interval-setclj/s

(interval-set & ivals)
source

iterate-nclj/s

(iterate-n n f x)
source

iterate-whileclj/s

(iterate-while pred f x)
source

neighborsclj/s

(neighbors x coll)
source

reduce-pairsclj/s

(reduce-pairs f1 f2 coll)
(reduce-pairs f1 f2 acc coll)
source

rotate-leftclj/s

(rotate-left n xs)
source

set-conjclj/s

source

set-conj2*clj/s

source

stringify-keysclj/s

(stringify-keys m)
source

successive-nthclj/s

(successive-nth n coll)
(successive-nth n step coll)

Returns a lazyseq of n-element vectors, each one containing a successive elements of the original collection.

(successive-nth 3 [1 2 3 4])
=> ([1 2 3] [2 3 4] [3 4 5])
Returns a lazyseq of `n`-element vectors, each one containing
a successive elements of the original collection.

    (successive-nth 3 [1 2 3 4])
    => ([1 2 3] [2 3 4] [3 4 5])
sourceraw docstring

successive-nth-indexedclj/s

(successive-nth-indexed n coll)
(successive-nth-indexed n idx coll)

Returns a lazyseq of nested 2-element vectors, each one containing a vector of n successive elements of the original collection and an sequence index.

(successive-nth-indexed 2 [10 20 30 40])
=> ([[10 20] 0] [[20 30] 1] [[30 40] 2])
Returns a lazyseq of nested 2-element vectors, each one containing
a vector of `n` successive elements of the original collection and
an sequence index.

    (successive-nth-indexed 2 [10 20 30 40])
    => ([[10 20] 0] [[20 30] 1] [[30 40] 2])
sourceraw docstring

unwrap-stringclj/s

(unwrap-string s n)
source

value-setclj/s

(value-set idx v)
(value-set f idx v)
source

vec-conjclj/s

source

vec-conj2*clj/s

source

wrapclj/s

(wrap a b s)
source

wrap-seqclj/s

(wrap-seq s head tail)
source

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

× close