Random utilities
Random utilities
(bigdec? x)
Return true if x is a BigDecimal. This function was already in 1.9 alphas but it was removed :(
Return true if x is a BigDecimal. This function was already in 1.9 alphas but it was removed :(
(debounce threshold f)
(debounce threshold f prep-fn)
Returns a function that will call f only after threshold has passed without new calls to the function. Calls prep-fn on the args in a sync way, which can be used for things like calling .persist on the event object to be able to access the event attributes in f
Returns a function that will call f only after threshold has passed without new calls to the function. Calls prep-fn on the args in a sync way, which can be used for things like calling .persist on the event object to be able to access the event attributes in f
(find-files path pattern)
Find files matching given pattern
.
Find files matching given `pattern`.
(find-files* path pred)
Find files in path
by pred
.
Find files in `path` by `pred`.
(interpose-fn sep)
(interpose-fn sep coll)
Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provided.
Returns a lazy seq of the elements of coll separated by sep. Returns a stateful transducer when no collection is provided.
(mapm f coll)
(mapm f c1 c2)
(mapm f c1 c2 c3)
(mapm f c1 c2 c3 & colls)
Like clojure.core/mapv, but creates a map
Like clojure.core/mapv, but creates a map
(ns-kw input)
Takes a string or a keyword. Returns a keyword where the ns is the caller ns and the name is the given string, or the name of the given keyword. ClojureScript only
Takes a string or a keyword. Returns a keyword where the ns is the caller ns and the name is the given string, or the name of the given keyword. **ClojureScript only**
(qualify-map-keywords ks ns)
Qualifies the keywords used as keys in a map. Accepts a map with keywords as keys and a namespace represented as keyword.
Qualifies the keywords used as keys in a map. Accepts a map with keywords as keys and a namespace represented as keyword.
(transform data xforms)
Applies the given transformation functions to data
Applies the given transformation functions to `data`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close