(->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`.
The counter used by gensym2
to implement the auto-increment number suffix.
The counter used by `gensym2` to implement the auto-increment number suffix.
(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`.
(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.
(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`
(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
(of-t t x)
(preserve-type expr replacement-expr)
Preserves the type information on the replacement expr
Preserves the type information on the replacement expr
(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.
(spy x)
(spy x label)
(thread-second x & forms)
(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.
(tmp-for expr)
(var v)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close