Common core code. This file should have minimal dependencies. Clients should be able to safely :refer :all from this namespace.
Common core code. This file should have minimal dependencies. Clients should be able to safely :refer :all from this namespace.
(->inspect v)
Insert in threading macro to print the value.
Insert in threading macro to print the value.
(->options options)
Takes keyword argument and converts them to a map. If the args are prefixed with a map, the rest of the args are merged in.
Takes keyword argument and converts them to a map. If the args are prefixed with a map, the rest of the args are merged in.
(assocv coll i elem)
insert elem into vector at index
insert elem into vector at index
(assocv>> i elem coll)
assocv with coll as last param
assocv with coll as last param
(concatv & cols)
ensures the seq is a vector after concat-ing
ensures the seq is a vector after concat-ing
(conjv col item)
ensures the seq is a vector before conj-ing
ensures the seq is a vector before conj-ing
(dissocv coll i)
removes the item at index i from the vector
removes the item at index i from the vector
(dissocv>> i coll)
dissocv with coll as last param
dissocv with coll as last param
(ex? e)
Returns true is e is an exception/error for the running platform
Returns true is e is an exception/error for the running platform
(ffilter pred coll)
Same as (first (filter ...)), but faster!
Same as (first (filter ...)), but faster!
(for-all bindings body)
(formats format & args)
Platform agnostic string format fm
Platform agnostic string format fm
(index-of e coll)
Returns the index of e (using =) in the seq. nil if missing.
Returns the index of e (using =) in the seq. nil if missing.
(new-uuid)
(remove-nils e)
Return a map where all the keys with nil values are removed
Return a map where all the keys with nil values are removed
(removev pred col)
(removev= col item)
(rsort coll)
(rsort comp coll)
Same as sort, but reversed
Same as sort, but reversed
(rsort-by keyfn coll)
(rsort-by keyfn comp coll)
Same as sort-by, but reversed
Same as sort-by, but reversed
(xor)
(xor x)
(xor x y & next)
Evaluates expressions one at a time, from left to right. If a second form evaluates to logical true, xor returns nil and doesn't evaluate any of the other expressions, otherwise it returns the value of the first logical true expression. If there are no truthy expressions, xor returns nil.
Evaluates expressions one at a time, from left to right. If a second form evaluates to logical true, xor returns nil and doesn't evaluate any of the other expressions, otherwise it returns the value of the first logical true expression. If there are no truthy expressions, xor returns nil.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close