Liking cljdoc? Tell your friends :D

kalai.util


->snake_caseclj

(->snake_case s)

Convert to snake_case using our override behavior for generic_split.

Convert to snake_case using our override behavior for `generic_split`.
raw docstring

cclj

The counter used by gensym2 to implement the auto-increment number suffix.

The counter used by `gensym2` to implement the auto-increment number suffix.
raw docstring

generic-splitclj

(generic-split ss)

Modify camel-snake-kebab behavior to prevent segmenting identifier strings when a letter is followed by a number. Ex: get_f32 should not be get_f_32.

Modify camel-snake-kebab behavior to prevent segmenting identifier strings
when a letter is followed by a number. Ex: `get_f32` should not be `get_f_32`.
raw docstring

gensym2clj

(gensym2 s)

Returns a symbol for an identifier whose name needs to be unique. The name is prefixed by s, and uses an auto-incrementing number as a suffix for uniqueness.

Returns a symbol for an identifier whose name needs to be unique. The name is prefixed by `s`,
and uses an auto-incrementing number as a suffix for uniqueness.
raw docstring

match-t?clj

(match-t? t x)

Match the value for t in the :t key in the metadata map of x

Match the value for `t` in the :t key in the metadata map of `x`
raw docstring

maybe-meta-assocclj

(maybe-meta-assoc x k v)
(maybe-meta-assoc x k v & more)

If v is truthy, sets k to v in meta of x

If v is truthy, sets k to v in meta of x
raw docstring

of-tclj

(of-t t x)

preserve-typeclj

(preserve-type expr replacement-expr)

Preserves the type information on the replacement expr

Preserves the type information on the replacement expr
raw docstring

sort-any-typeclj

(sort-any-type coll)

Provides a deterministic ordering of the entries/elements of the provided collection. Maps are ordered by their keys. Numbers come before strings, and numbers and strings are thusly sorted independently before concatenating in the return value.

Provides a deterministic ordering of the entries/elements of the provided collection.
Maps are ordered by their keys. Numbers come before strings, and numbers and strings
 are thusly sorted independently before concatenating in the return value.
raw docstring

spyclj

(spy x)
(spy x label)

thread-secondclj

(thread-second x & forms)

tmpclj

(tmp type expr)

Creates a unique symbol (named via gensym2) with the metadata necessary for creating a temporary mutable variable.

Creates a unique symbol (named via `gensym2`) with the metadata necessary for
creating a temporary mutable variable.
raw docstring

tmp-forclj

(tmp-for expr)

varclj

(var v)

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

× close