Liking cljdoc? Tell your friends :D

semantic-csv.casters


->booleanclj/s

(->boolean x)
(->boolean {:keys [nil-fill]} x)

Translate to boolean from string or other numeric.

An opts map can be specified as the first arguments with the following options:

  • :nil-fill - return this when input is empty/nil.
Translate to boolean from string or other numeric.

An opts map can be specified as the first arguments with the following options:
* `:nil-fill` - return this when input is empty/nil.
sourceraw docstring

->doubleclj/s

(->double x)
(->double {:keys [nil-fill]} x)

Translate to double from string or other numeric.

An opts map can be specified as the first arguments with the following options:

  • :nil-fill - return this when input is empty/nil.
Translate to double from string or other numeric.

An opts map can be specified as the first arguments with the following options:
* `:nil-fill` - return this when input is empty/nil.
sourceraw docstring

->floatclj/s

(->float x)
(->float {:keys [nil-fill]} x)

Translate to float from string or other numeric.

An opts map can be specified as the first arguments with the following options:

  • :nil-fill - return this when input is empty/nil.
Translate to float from string or other numeric.

An opts map can be specified as the first arguments with the following options:
* `:nil-fill` - return this when input is empty/nil.
sourceraw docstring

->idiomatic-keywordclj/s

(->idiomatic-keyword x)

Takes a string, replacing consecutive underscores and spaces with a single dash(-), then returns a keyword based on the transformed string.

Takes a string, replacing consecutive underscores and spaces with a single dash(-),
then returns a keyword based on the transformed string.
sourceraw docstring

->intclj/s

(->int x)
(->int {:keys [nil-fill]} x)

Translate to int from string or other numeric. If string represents a non integer value, it will be rounded down to the nearest int.

An opts map can be specified as the first arguments with the following options:

  • :nil-fill - return this when input is empty/nil.
Translate to int from string or other numeric. If string represents a non integer value,
it will be rounded down to the nearest int.

An opts map can be specified as the first arguments with the following options:
* `:nil-fill` - return this when input is empty/nil.
sourceraw docstring

->longclj/s

(->long x)
(->long {:keys [nil-fill]} x)

Translate to long from string or other numeric. If string represents a non integer value, will be rounded down to the nearest long.

An opts map can be specified as the first arguments with the following options:

  • :nil-fill - return this when input is empty/nil.
Translate to long from string or other numeric. If string represents a non integer value,
will be rounded down to the nearest long.

An opts map can be specified as the first arguments with the following options:
* `:nil-fill` - return this when input is empty/nil.
sourceraw docstring

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

× close