Liking cljdoc? Tell your friends :D

libmisc-clj.coercions


as-boolclj

(as-bool s)

Parse a string into a boolean, or nil if the string cannot be parsed.

Parse a string into a boolean, or `nil` if the string cannot be parsed.
sourceraw docstring

as-doubleclj

(as-double s)

Parse a string into a double, or nil if the string cannot be parsed.

Parse a string into a double, or `nil` if the string cannot be parsed.
sourceraw docstring

as-intclj

(as-int s)

Parse a string into an integer, or nil if the string cannot be parsed.

Parse a string into an integer, or `nil` if the string cannot be parsed.
sourceraw docstring

as-numberclj

(as-number s)

Reads a number from a string. Returns nil if not a number.

Reads a number from a string. Returns nil if not a number.
sourceraw docstring

as-uuidclj

(as-uuid s)

Parse a string into a UUID, or nil if the string cannot be parsed.

Parse a string into a UUID, or `nil` if the string cannot be parsed.
sourceraw docstring

bool!clj

(bool! v)
source

comp-coerceclj

(comp-coerce & fns)
source

uuid!clj

(uuid! v)

Gets string and converts it into java.util/UUID object If v is not string or UUID -- returns nil

Gets string and converts it into java.util/UUID object
If v is not string or UUID -- returns nil
sourceraw docstring

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

× close