Liking cljdoc? Tell your friends :D

proton.core

More commonly used utilities

More commonly used utilities
raw docstring

as-booleanclj/s

(as-boolean s)

Returns a boolean represented by s. as-boolean returns true if s is "true" or "yes", ignoring case, false if "false" or "no", and nil otherwise.

Returns a boolean represented by s. as-boolean returns true if s is "true"
or "yes", ignoring case, false if "false" or "no", and nil otherwise.
sourceraw docstring

as-doubleclj/s

(as-double s)

Returns a new double number initialized to the value represented by s. as-double returns nil if s is an illegal string or nil.

Returns a new double number initialized to the value represented by s.
as-double returns nil if s is an illegal string or nil.
sourceraw docstring

as-floatclj/s

(as-float s)

Returns a new float number initialized to the value represented by s. as-float returns nil if s is an illegal string or nil. as-float returns a double number if s is out of float range.

Returns a new float number initialized to the value represented by s.
as-float returns nil if s is an illegal string or nil. as-float returns a
double number if s is out of float range.
sourceraw docstring

as-intclj/s

(as-int s)

Returns a new integer number initialized to the value represented by s. as-int returns nil if s is an illegal string or nil. as-long returns a long number if s is out of int range.

Returns a new integer number initialized to the value represented by s.
as-int returns nil if s is an illegal string or nil. as-long returns a
long number if s is out of int range.
sourceraw docstring

as-longclj/s

(as-long s)

Returns a new long number initialized to the value represented by s. as-int returns nil if s is an illegal string or nil.

Returns a new long number initialized to the value represented by s.
as-int returns nil if s is an illegal string or nil.
sourceraw docstring

as-rationalclj/s

(as-rational s)

Returns a new rational number initialized to the value represented by s such as "1", "1/2", and "-1/2". as-rational returns nil if s is an illegal string, nil, or division by zero.

Returns a new rational number initialized to the value represented by s such
as "1", "1/2", and "-1/2". as-rational returns nil if s is an illegal
string, nil, or division by zero.
sourceraw docstring

bytes->hexclj/s

(bytes->hex data)

Convert byte array to hex string.

Convert byte array to hex string.
sourceraw docstring

clipclj/s

(clip x xmin xmax)

Limits x in the interval of [xmin xmax]. A value smaller than xmin becomes xmin, and a value larger than xmax becomes xmax. If nil is supplied to xmin/xmax, its side will not be limited.

Limits x in the interval of [xmin xmax]. A value smaller than xmin becomes
xmin, and a value larger than xmax becomes xmax. If nil is supplied to
xmin/xmax, its side will not be limited.
sourceraw docstring

deep-mergeclj/s

(deep-merge & maps)

Recursively merges maps.

Recursively merges maps.
sourceraw docstring

hex->bytesclj/s

(hex->bytes data)

Convert hex string to bytes array.

Convert hex string to bytes array.
sourceraw docstring

is-uuid?clj/s

(is-uuid? o)

Type check uuid object.

Type check uuid object.
sourceraw docstring

random-stringclj/sdeprecated

(random-string length)

DEPRECATED: Use 'proton.string/rand-str' instead. Generate random string from alphabets and numbers (i.e. 0-9, A-Z, and a-z)

DEPRECATED: Use 'proton.string/rand-str' instead.
Generate random string from alphabets and numbers (i.e. 0-9, A-Z, and a-z)
sourceraw docstring

stack-trace-stringclj/s

(stack-trace-string e)

Returns a flattened string of stacktraces from an exception

Returns a flattened string of stacktraces from an exception
sourceraw docstring

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

× close