(->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.
(->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.
(->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.
(->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.
(->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.
(->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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close