Liking cljdoc? Tell your friends :D

diction.util


->ednclj

(->edn s)

Convert JSON string s to map.

Convert JSON string `s` to map.
sourceraw docstring

->jsonclj

(->json m)

Convert map m to JSON string.

Convert map `m` to JSON string.
sourceraw docstring

->kwclj

(->kw x)

Convert xs to keyword.

Convert `xs` to keyword.
sourceraw docstring

->skewerclj

(->skewer s)

Convert s to skewer case.

Convert `s` to skewer case.
sourceraw docstring

->skewer-kwclj

(->skewer-kw x)

Converts x to skewer keyword.

Converts `x` to skewer keyword.
sourceraw docstring

->snakeclj

(->snake s)

Convert s to snake case.

Convert `s` to snake case.
sourceraw docstring

->strclj

(->str x)

Convert x to string.

Convert `x` to string.
sourceraw docstring

add-encoders-resultclj

Adds JSON encodes default to str to not blow up EDN->JSON conversions.

Adds JSON encodes default to `str` to not blow up EDN->JSON conversions.
sourceraw docstring

apply-f-to-keysclj

(apply-f-to-keys f m)

Recursively transforms all map keys from keywords to strings.

Recursively transforms all map keys from keywords to strings.
sourceraw docstring

coin-toss?clj

(coin-toss?)

Equal chance for true or false.

Equal chance for true or false.
sourceraw docstring

default-label-replacementsclj

Default label replacements, mostly acronyms and abbreviations.

Default label replacements, mostly acronyms and abbreviations.
sourceraw docstring

force-in-rangeclj

(force-in-range min max v)

Force numeric value v in range with min and max.

Force numeric value `v` in range with `min` and `max`.
sourceraw docstring

generate-random-uuidclj

(generate-random-uuid)

Generates random UUID string.

Generates random UUID string.
sourceraw docstring

joda-classclj

Joda class variable.

Joda class variable.
sourceraw docstring

joda?clj

(joda? x)

Determine if x is a Joda DateTime instance.

Determine if `x` is a Joda DateTime instance.
sourceraw docstring

json-encode-to-string-classesclj

source

label-replacementsclj

Atom for label replacement map.

Atom for label replacement map.
sourceraw docstring

label-replacements!clj

(label-replacements! lrs)

Sets the label replacements with lrs map. lrs should have the string key with only the first letter capitalized (Id no id), and the value the prettified word or abbreviation.

Sets the label replacements with `lrs` map.
`lrs` should have the string key with only the first letter capitalized
(`Id` no `id`), and the value the prettified word or abbreviation.
sourceraw docstring

labelizeclj

(labelize x)

Converts x to a label.

Converts `x` to a label.
sourceraw docstring

labelize-elementclj

(labelize-element x)

Converts element name x to a label.

Converts element name `x` to a label.
sourceraw docstring

normalize-wordsclj

(normalize-words s)

Normalize each word in s.

Normalize each word in `s`.
sourceraw docstring

polite-assocclj

(polite-assoc m k v)

Politely associates in map m with key k the value v iff both the key k and v are non-nil AND there is no existing value in the map m located at key k.

Politely associates in map `m` with key `k` the value `v` iff
both the key `k` and `v` are non-nil AND there is no existing value
in the map `m` located at key `k`.
sourceraw docstring

polite-assoc-inclj

(polite-assoc-in m ks v)

Politely associates in map m with nested keys ks the value v iff both the keys ks and v are non-nil AND there is no existing value in the map m located at the keys ks.

Politely associates in map `m` with nested keys `ks` the value `v` iff
both the keys `ks` and `v` are non-nil AND there is no existing value
in the map `m` located at the keys `ks`.
sourceraw docstring

polite-conjclj

(polite-conj v x & xs)

Politely conjoins element x to list v iff x is non-nil.

Politely conjoins element `x` to list `v` iff `x` is non-nil.
sourceraw docstring

random-doubleclj

(random-double)

Generates random double.

Generates random double.
sourceraw docstring

random-floatclj

(random-float)

Generates random float.

Generates random float.
sourceraw docstring

random-intclj

(random-int)

Generates random int.

Generates random int.
sourceraw docstring

random-longclj

(random-long)

Generates random long.

Generates random long.
sourceraw docstring

replace-labelsclj

(replace-labels v)

Replace label v with replacement, otherwise pass through v.

Replace label `v` with replacement, otherwise pass through `v`.
sourceraw docstring

replace-withclj

(replace-with rs v)

Returns value in replacement map rs if the key v exists in rs. Otherwise, returns v.

Returns value in replacement map `rs` if the key `v` exists
in `rs`.  Otherwise, returns `v`.
sourceraw docstring

rndmclj

Generates a random number.

Generates a random number.
sourceraw docstring

safe-nthclj

(safe-nth c ndx)

Safe nth against collection c and index ndx. Returns nil if exception.

Safe nth against collection `c` and index `ndx`.  Returns `nil` if exception.
sourceraw docstring

skewer-keysclj

Convert keys to skewer-case.

Convert keys to skewer-case.
sourceraw docstring

snake-keysclj

Convert keys to snake_case.

Convert keys to snake_case.
sourceraw docstring

stack-assocclj

(stack-assoc m k v)

Associates key k and value v to map m.

Associates key `k` and value `v` to map `m`.
sourceraw docstring

strict-double?clj

(strict-double? x)

Determines if x is a strict double.

Determines if `x` is a strict `double`.
sourceraw docstring

strict-float?clj

(strict-float? x)

Determines if x is a strict float.

Determines if `x` is a strict `float`.
sourceraw docstring

strict-int?clj

(strict-int? x)

Determines if x is a strict int.

Determines if `x` is a strict `int`.
sourceraw docstring

strict-long?clj

(strict-long? x)

Determines if x is strict long.

Determines if `x` is strict `long`.
sourceraw docstring

vls?clj

(vls? x)

Determines if x is a vector, set, or list.

Determines if `x` is a vector, set, or list.
sourceraw docstring

walk-apply-key-fclj

(walk-apply-key-f kf kv)

Apply key function kv to key-value pair kv. Used to walk map.

Apply key function `kv` to key-value pair `kv`.  Used to walk map.
sourceraw docstring

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

× close