Liking cljdoc? Tell your friends :D

uk.axvr.refrain

Collection of useful Clojure utilities.

Collection of useful Clojure utilities.
raw docstring

assoc*clj/s

(assoc* m & kvs)

Like clojure.core/assoc, but won't assoc if key or val is nil.

Like `clojure.core/assoc`, but won't assoc if key or val is nil.
raw docstring

contrastclj/s

(contrast op)
(contrast op obj & objs)

Contrast multiple comparable objects with each other with op. (Wrapper around clojure.core/compare.) Example ops: < > <= >= = not=

Contrast multiple comparable objects with each other with op.  (Wrapper
around `clojure.core/compare`.)  Example ops: < > <= >= = not=
raw docstring

deep-mergeclj/s

(deep-merge & colls)

Like clojure.core/merge, but recursively merges maps.

Like `clojure.core/merge`, but recursively merges maps.
raw docstring

deep-merge-withclj/s

(deep-merge-with _ coll)
(deep-merge-with f c1 c2)
(deep-merge-with f c1 c2 & cs)

Like clojure.core/merge-with, but recursively merges maps.

Like `clojure.core/merge-with`, but recursively merges maps.
raw docstring

derefable?clj/s

(derefable? ref)

Returns true if clojure.core/deref can be called on ref.

Returns true if `clojure.core/deref` can be called on ref.
raw docstring

dissoc-inclj/s

(dissoc-in m [k & ks])

Dissociates an entry from a nested associative structure returning a new nested structure. ks is a sequence of keys. Any empty maps that result will not be present in the new structure.

Dissociates an entry from a nested associative structure returning a new
nested structure.  ks is a sequence of keys.  Any empty maps that result
will not be present in the new structure.
raw docstring

in?clj/s

(in? coll elm)

Returns true if coll contains elm.

Returns true if coll contains elm.
raw docstring

macro-body-optsclj/s

(macro-body-opts [opts & body :as params])

Helper for creating macros that accept an optional map of options in their body. Call this function in your macro on the rest-body param and it will return a vector containing the option map and the rest of the body.

An option map will be found if there were more than one form in the body and the first form is a map.

Helper for creating macros that accept an optional map of options in their
body.  Call this function in your macro on the rest-body param and it will
return a vector containing the option map and the rest of the body.

An option map will be found if there were more than one form in the body and
the first form is a map.
raw docstring

read-edn-resourceclj

(read-edn-resource path)

Read an EDN file at path from JVM resources.

Read an EDN file at path from JVM resources.
raw docstring

regexp?clj

(regexp? x)

Returns true if x is a Java regular expression pattern.

Returns true if x is a Java regular expression pattern.
raw docstring

submap?clj/s

(submap? map1 map2)

Returns true if map1 is a subset of map2.

Returns true if map1 is a subset of map2.
raw docstring

trim-endclj/s

(trim-end s substr)

Trim substr from the end of s.

Trim substr from the end of s.
raw docstring

trim-startclj/s

(trim-start s substr)

Trim substr from the start of s.

Trim substr from the start of s.
raw docstring

when-let*clj/smacro

(when-let* bindings & body)

Short circuiting version of clojure.core/when-let on multiple binding forms.

Short circuiting version of `clojure.core/when-let` on multiple binding
forms.
raw docstring

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

× close