Liking cljdoc? Tell your friends :D
Mostly clj/s.
Exceptions indicated.

io.jesi.backpack


->camelCaseclj/s≠

clj
(->camelCase s)
cljs
sourceraw docstring

->camelCase-keyclj/s

sourceraw docstring

->comparatorclj/s≠

clj
(->comparator val-fn)
cljs

Returns a comparator where values returning from a value function are compared against

Returns a comparator where values returning from a value function are compared against
sourceraw docstring

->kebab-caseclj/s≠

clj
(->kebab-case s)
cljs
sourceraw docstring

->kebab-case-keyclj/s

sourceraw docstring

->proper-caseclj/s≠

clj
(->proper-case s)
cljs
sourceraw docstring

->snake_caseclj/s≠

clj
(->snake_case s)
cljs
sourceraw docstring

->snake_case-keyclj/s

sourceraw docstring

->uriclj/s≠

clj
(->uri s)
cljs
sourceraw docstring

->uuidclj/smultimethod

Coerces a value into a UUID if possible, otherwise returns nil

Coerces a value into a UUID if possible, otherwise returns nil
sourceraw docstring

->uuid-or-notclj/s≠

clj
(->uuid-or-not id)
cljs
sourceraw docstring

add-shutdown-hookcljmacro

(add-shutdown-hook & body)

Adds a shutdown hook using java.lang.Runtime.addShutdownHook. Returns the created Thread

Adds a shutdown hook using java.lang.Runtime.addShutdownHook. Returns the created Thread
sourceraw docstring

add-shutdown-hook-fnclj

(add-shutdown-hook-fn f)

Adds a shutdown hook using java.lang.Runtime.addShutdownHook. Takes a function f, and returns the created Thread

Adds a shutdown hook using java.lang.Runtime.addShutdownHook. Takes a function `f`, and returns the created Thread
sourceraw docstring

and-fnclj/s≠

clj
(and-fn pred & more)
cljs

Higher order and. Takes any number of predicates and returns a function that takes a value and returns true if ALL individual predicates return true, else return false.

Higher order `and`.
Takes any number of predicates and returns a function that takes a value
and returns true if ALL individual predicates return true, else return false.
sourceraw docstring

any?clj/s≠

clj
(any? pred coll)
cljs

Returns true if any item in coll returns true for pred, otherwise false

Returns true if any item in coll returns true for pred, otherwise false
sourceraw docstring

apply-whenclj/s≠

clj
(apply-when f v)
cljs

Invokes f when it's truthy

Invokes f when it's truthy
sourceraw docstring

assoc-inclj/s≠

clj
(assoc-in m & kvs)
cljs
sourceraw docstring

assoc-some!clj/s≠

clj
(assoc-some! tmap k v)
cljs

Assocs some value into a transitive map

Assocs some value into a transitive map
sourceraw docstring

blank?clj/s

Similar to clojure.string/blank? but returns false if given a non-string

Similar to clojure.string/blank? but returns false if given a non-string
sourceraw docstring

callclj/s≠

clj
(call f v)
cljs

Calls the function f with a value v

Calls the function `f` with a value `v`
sourceraw docstring

class->cljcljs

sourceraw docstring

clj->jscljs

Transforms ClojureScript to JavaScript. Converting keys to camelCase by default

Transforms ClojureScript to JavaScript. Converting keys to camelCase by default
sourceraw docstring

closeclj/smultimethod

sourceraw docstring

collifyclj/s≠

clj
(collify)
(collify v)
cljs

Puts value v in a vector if it is not a collection. Returns nil if no value

Puts value `v` in a vector if it is not a collection. Returns `nil` if no value
sourceraw docstring

comprclj/s≠

clj
(compr)
(compr f)
(compr f g)
(compr f g & more)
cljs

Composes functions left to right, the opposite of comp

Composes functions left to right, the opposite of `comp`
sourceraw docstring

concat!clj/s≠

clj
(concat!)
(concat! tcoll)
(concat! tcoll seq)
(concat! tcoll seq & more)
cljs

Adds the values to the transient collection, returning tcoll. Concatenates of the elements in the supplied sequences

Adds the values to the transient collection, returning tcoll. Concatenates of the elements in the supplied sequences
sourceraw docstring

conj!clj/s≠

clj
(conj!)
(conj! tcoll)
(conj! tcoll val)
(conj! tcoll val & more)
cljs

Adds val to the transient collection, and return tcoll. The 'addition' may happen at different 'places' depending on the concrete type.

Adds val to the transient collection, and return tcoll. The 'addition'
may happen at different 'places' depending on the concrete type.
sourceraw docstring

conj-some!clj/s≠

clj
(conj-some! tcoll v)
cljs

Adds a value to the transitive collection if some

Adds a value to the transitive collection if some
sourceraw docstring

contains-any?clj/s≠

clj
(contains-any? map & keys)
cljs
sourceraw docstring

d#clj/s≠

clj
(d# a)
cljs

Derefs a value if it is derefable

Derefs a value if it is derefable
sourceraw docstring

default-changed-mergerclj/s

sourceraw docstring

default-comparatorclj/s

sourceraw docstring

defkw-typeclj

(defkw-type type kw & args)
sourceraw docstring

diffclj/s≠

clj
(diff existing updated)
(diff leaf-pred existing updated)
(diff leaf-pred comparator existing updated)
(diff leaf-pred comparator changed-merger existing updated)
cljs

Returns a map of paths which have changed :added, :changed, :removed, and :same

Returns a map of paths which have changed :added, :changed, :removed, and :same
sourceraw docstring

dissoc-allclj/s≠

clj
(dissoc-all map & keys)
cljs
sourceraw docstring

dissoc-inclj/s≠

clj
(dissoc-in m path & paths)
cljs

Dissociates paths from a map. Any empty maps produced will be removed

Dissociates paths from a map.
Any empty maps produced will be removed
sourceraw docstring

distinct-byclj/s≠

clj
(distinct-by key entities)
cljs
sourceraw docstring

distinct-vals?clj/s≠

clj
(distinct-vals? m)
cljs

Returns true if all the map values are unique

Returns true if all the map values are unique 
sourceraw docstring

empty->nilclj/s≠

clj
(empty->nil x)
cljs

Returns nil if argument returns true for (clojure.core/empty?)

Returns `nil` if argument returns `true` for `(clojure.core/empty?)`
sourceraw docstring

exception?clj/s≠

clj
(exception? x)
cljs

Returns true if x is a Clojure Throwable or ClojureScript js/Error

Returns `true` if x is a Clojure Throwable or ClojureScript js/Error
sourceraw docstring

filter-byclj/s≠

clj
(filter-by key-fn pred coll)
cljs

Filters a collection where a key matches a predicate e.g. (let [coll [{:id 1} {:id 2}] (filter-by :id (bp/p= 1) coll)) ; returns `({:id 1})

Filters a collection where a key matches a predicate
e.g.
(let [coll [{:id 1} {:id 2}]
  (filter-by :id (bp/p= 1) coll)) ; returns `({:id 1})
sourceraw docstring

filter-emptyclj/s

sourceraw docstring

filter-key=clj/s≠

clj
(filter-key= key-fn value coll)
cljs

Filters a collection where a key matches a value e.g. (let [coll [{:id 1} {:id 2}] (filter-key= :id 1 coll)) ; returns `({:id 1})

Filters a collection where a key matches a value
e.g.
(let [coll [{:id 1} {:id 2}]
  (filter-key= :id 1 coll)) ; returns `({:id 1})
sourceraw docstring

filter-nil-keysclj/s≠

clj
(filter-nil-keys map)
cljs

Filters out all nil key values from a map

Filters out all nil key values from a map
sourceraw docstring

filter-valuesclj/s≠

clj
(filter-values pred map)
cljs
sourceraw docstring

first-someclj/s≠

clj
(first-some m & ks)
cljs
sourceraw docstring

if-fnclj/s≠

clj
(if-fn pred then)
(if-fn pred then else)
cljs

Higher-order if function. Takes a predicate (pred), calling then or (optionally) else based on the predicate. Returns nil if no else defined.

Higher-order if function.
Takes a predicate (`pred`), calling `then` or (optionally) `else` based on the predicate.
Returns nil if no `else` defined.
sourceraw docstring

in?clj/s≠

clj
(in? col el)
cljs
sourceraw docstring

infinityclj/s

Java's Integer/MAX_VALUE for consistence use in Clojure(Script) projects

Java's Integer/MAX_VALUE for consistence use in Clojure(Script) projects
sourceraw docstring

java->cljclj

(java->clj j)
(java->clj j key-fn)

Transforms Java to Clojure. Converting keys to kebab-case keywords by default

Transforms Java to Clojure. Converting keys to kebab-case keywords by default
sourceraw docstring

js->cljcljs

Transforms JavaScript to ClojureScript. Converting keys to kebab-case keywords by default

Transforms JavaScript to ClojureScript. Converting keys to kebab-case keywords by default
sourceraw docstring

kebab->proper-caseclj/s≠

clj
(kebab->proper-case s)
cljs
sourceraw docstring

kebab-case->Proper-Kebab-Caseclj/s≠

clj
(kebab-case->Proper-Kebab-Case kebab-case-str)
cljs
sourceraw docstring

macro?clj

(macro? sym)

True if the provided sym is a macro

True if the provided `sym` is a macro
sourceraw docstring

map-ifclj/s≠

clj
(map-if pred f col)
cljs
sourceraw docstring

map-key-walkerclj/s

sourceraw docstring

map-leavesclj/s≠

clj
(map-leaves f coll)
(map-leaves f leaf-pred coll)
cljs

Traverses and applies the mapping function to each leaf of a data structure. The mapping function is given the path and value at that path

Traverses and applies the mapping function to each leaf of a data structure. The mapping function is given the path and
value at that path
sourceraw docstring

map-walkerclj/s

sourceraw docstring

modclj/s≠

clj
(mod num div)
cljs

Modulus of num and div supporting float and decimal values. Truncates toward negative infinity.

Modulus of num and div supporting float and decimal values. Truncates toward negative infinity.
sourceraw docstring

named?clj/s≠

clj
(named? x)
cljs

Returns true if x is named (can be passed to name)

Returns true if `x` is named (can be passed to `name`)
sourceraw docstring

namespaced?clj/s≠

clj
(namespaced? named)
cljs

Returns true if the named has a namespace

Returns true if the `named` has a namespace
sourceraw docstring

not-blank?clj/s

sourceraw docstring

or-fnclj/s≠

clj
(or-fn pred & more)
cljs

Higher order or. Takes any number of predicates and returns a function that takes a value and returns true if ANY individual predicates return true, else return false.

Higher order `or`.
Takes any number of predicates and returns a function that takes a value
and returns true if ANY individual predicates return true, else return false.
sourceraw docstring

p=clj/s≠

clj
(p= & x)
cljs

Partial =

Partial =
sourceraw docstring

partial-rightclj/s≠

clj
(partial-right f & args)
cljs
sourceraw docstring

passclj/s≠

clj
(pass f)
cljs
sourceraw docstring

pass-ifclj/s≠

clj
(pass-if pred f)
cljs
sourceraw docstring

path-walkerclj/s

A spectre recursive path navigator, that collects all paths to the occurrences of leaves that match the given predicate. Does not traverse deeper into the matched structures.

A spectre recursive path navigator, that collects all paths to the occurrences of leaves that match the given predicate.
Does not traverse deeper into the matched structures.
sourceraw docstring

pprint-strclj

(pprint-str object)
sourceraw docstring

pprint-str-codeclj

(pprint-str-code object)
sourceraw docstring

re-quoteclj/s≠

clj
(re-quote s)
cljs

Quotes the regex string

Quotes the regex string
sourceraw docstring

redactclj/s≠

clj
(redact keys m)
(redact keys m redacted-value)
cljs

Deeply replaces value of all the keys in m with the redacted-value

Deeply replaces value of all the `keys` in `m` with the `redacted-value`
sourceraw docstring

reduce-leavesclj/s≠

clj
(reduce-leaves f coll)
(reduce-leaves f init coll)
(reduce-leaves f init leaf-pred coll)
cljs

Traverses and reduces a data structure where the reducing function is given an accumulator, vector path and value at that path

Traverses and reduces a data structure where the reducing function is given an accumulator, vector path and value at that
path
sourceraw docstring

remove-emptyclj/s≠

clj
(remove-empty x)
cljs
sourceraw docstring

remove-nil-valsclj/s≠

clj
(remove-nil-vals map)
cljs

Shallowly removes nil values from a map

Shallowly removes nil values from a map
sourceraw docstring

remove-prefixclj/s≠

clj
(remove-prefix prefix s)
(remove-prefix prefix separator s)
cljs

Removes the prefix if the string starts with it otherwise ignores, is case sensitive

Removes the prefix if the string starts with it otherwise ignores, is case sensitive
sourceraw docstring

rename-keys!clj/s≠

clj
(rename-keys! tmap kmap)
cljs

Returns the transient map with the keys in kmap renamed to the vals in kmap

Returns the transient map with the keys in kmap renamed to the vals in kmap
sourceraw docstring

round-toclj/s≠

clj
(round-to precision d)
cljs

Rounds a given value 'd' to the specified 'precision'

Rounds a given value 'd' to the specified 'precision'
sourceraw docstring

safe-empty?clj/s≠

clj
(safe-empty? x)
cljs
sourceraw docstring

select-non-nil-keysclj/s≠

clj
(select-non-nil-keys m keys)
cljs
sourceraw docstring

select-valsclj/s≠

clj
(select-vals m ks)
cljs

Selects all values from a map using specified keys. Missing keys return nil

Selects all values from a map using specified keys. Missing keys return nil
sourceraw docstring

sorted-map-by-indexclj/s≠

clj
(sorted-map-by-index idx & keyvals)
cljs
sourceraw docstring

sorted-map-by-orderclj/s≠

clj
(sorted-map-by-order ks & keyvals)
cljs
sourceraw docstring

sorted?clj/s≠

clj
(sorted? coll)
(sorted? comp coll)
cljs

True if a collection is sorted by means of a 2 or 3 way comparator

True if a collection is sorted by means of a 2 or 3 way comparator
sourceraw docstring

split-at-firstclj/s≠

clj
(split-at-first value s)
cljs

Splits s at the first occurrence of value, returns nil when s is empty

Splits s at the first occurrence of value, returns nil when s is empty
sourceraw docstring

subsclj/s≠

clj
(subs s start)
(subs s start end)
cljs
sourceraw docstring

subs-incclj/s≠

clj
(subs-inc match s)
cljs

Returns the substring of 's' up to and including the 'match' or nil

Returns the substring of 's' up to and including the 'match' or nil
sourceraw docstring

subs-toclj/s≠

clj
(subs-to match s)
cljs

Returns the substring of 's' up until the 'match'

Returns the substring of 's' up until the 'match'
sourceraw docstring

throw-if-throwableclj/s≠

clj
(throw-if-throwable ex)
cljs

Throw ex if it's an exception. Retains the message, data, and cause

Throw ex if it's an exception. Retains the message, data, and cause
sourceraw docstring

trans-reduceclj/s≠

clj
(trans-reduce f [c & coll])
(trans-reduce f init coll)
cljs
sourceraw docstring

trans-reduce-kvclj/s≠

clj
(trans-reduce-kv f init coll)
cljs
sourceraw docstring

transform-keysclj/s≠

clj
(transform-keys f coll)
cljs

Recursively transforms all map keys in coll with f

Recursively transforms all map keys in coll with f
sourceraw docstring

translate-keysclj/s≠

clj
(translate-keys kmap map)
cljs

Updates map with the keys from kmap

Updates map with the keys from kmap
sourceraw docstring

true-string?clj/s≠

clj
(true-string? s)
cljs

True if 's' is the string literal 'true'

True if 's' is the string literal 'true'
sourceraw docstring

update!clj/s≠

clj
(update! tcoll k f)
(update! tcoll k f x)
(update! tcoll k f x y)
(update! tcoll k f x y z)
(update! tcoll k f x y z & more)
cljs

'Updates' a value in an transient associative structure, where k is a key and f is a function that will take the old value and any supplied args and return the new value, and returns a new structure. If the key does not exist, nil is passed as the old value.

'Updates' a value in an transient associative structure, where k is a
key and f is a function that will take the old value and any supplied args
and return the new value, and returns a new structure.
If the key does not exist, nil is passed as the old value.
sourceraw docstring

update-someclj/s≠

clj
(update-some m k f & args)
cljs

Updates a key in a map with a function, only if the key is present and the result of f is not nil.

Updates a key in a map with a function, only if the key is present and the result of `f` is not nil.
sourceraw docstring

update-some!clj/s≠

clj
(update-some! tmap k f)
cljs

Replaces the value of a key in a transitive map if the result of the function is some

Replaces the value of a key in a transitive map if the result of the function is some
sourceraw docstring

uuid-str?clj/s≠

clj
(uuid-str? s)
cljs

True if 's' is a string and matches the UUID format

True if 's' is a string and matches the UUID format
sourceraw docstring

xorclj/s≠

clj
(xor)
(xor x)
(xor x y)
(xor x y & more)
cljs

Returns true only if one argument is true

Returns `true` only if one argument is `true`
sourceraw docstring

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

× close