Liking cljdoc? Tell your friends :D

io.randomseed.bankster.util

Support functions and macros.

Support functions and macros.
raw docstring

bytes-concatclj

(bytes-concat)
(bytes-concat bary)
(bytes-concat bary & byte-arys)
source

bytes-to-stringclj

(bytes-to-string b)

Converts bytes into a string

Converts bytes into a string
sourceraw docstring

bzeroclj

source

char-ranges->setclj

(char-ranges->set & ranges)

Returns a set of characters defined as a collection of collections with start and stop character, e.g.: [\A \Z][\0 \9]

Returns a set of characters defined as a collection of collections with start and
stop character, e.g.: [\A \Z][\0 \9]
sourceraw docstring

count-digitsclj

(count-digits n)
source

current-threadclj

(current-thread)
source

current-thread-idclj

(current-thread-id)
source

current-thread-nameclj

(current-thread-name)
source

ensure-keywordclj

(ensure-keyword id)
source

ensure-keyword-having-nsclj

(ensure-keyword-having-ns id ns)
source

gen-digitsclj

(gen-digits num)
(gen-digits num rng)

Generates the given number of random digits and converts all into a single string. When the second argument is present it should be an instance of random number generator used to get the digits.

Generates the given number of random digits and converts all into a single string.
When the second argument is present it should be an instance of random number
generator used to get the digits.
sourceraw docstring

get-rand-intclj

(get-rand-int n)
(get-rand-int n rng)

Like rand-int but optionally uses random number generator.

Like rand-int but optionally uses random number generator.
sourceraw docstring

get-rand-nthclj

(get-rand-nth v)
(get-rand-nth v rng)

Returns a random element of the given vector. When the second argument is present it should be an instance of random number generator used to get the random position.

Returns a random element of the given vector. When the second argument is present it
should be an instance of random number generator used to get the random position.
sourceraw docstring

inferred-contains?clj

(inferred-contains? coll k)

Just like the contains? but if the keyword is namespace-qualified it also checks if the collection contains the same keyword as its key but without a namespace.

Just like the contains? but if the keyword is namespace-qualified it also checks if
the collection contains the same keyword as its key but without a namespace.
sourceraw docstring

inferred-getclj

(inferred-get coll k)
(inferred-get coll k default)

Just like the get function but if the keyword is namespace-qualified it first attempts to look for the value associated with it. If that fails it uses the variant of the keyword without any namespace.

Just like the get function but if the keyword is namespace-qualified it first
attempts to look for the value associated with it. If that fails it uses the
variant of the keyword without any namespace.
sourceraw docstring

iscljmacro

(is pred val & body)
source

is-notcljmacro

(is-not pred val & body)
source

juxt-seqclj

(juxt-seq & functions)

Like juxt but returns a lazy sequence.

Like juxt but returns a lazy sequence.
sourceraw docstring

lazy-iterator-seqclj

(lazy-iterator-seq coll)
(lazy-iterator-seq coll iter)

Returns a lazy sequence as an interface to the given iterable Java object.

Returns a lazy sequence as an interface to the given iterable Java object.
sourceraw docstring

must-have-nsclj

(must-have-ns id ns)
source

ns-inferclj

(ns-infer ns-name k)
(ns-infer ns-name k use-infer)

Takes a string of namespace name and a keyword. If the given keyword is not namespace-qualified it returns a new keyword with the given namespace added. If the given keyword is already equipped with a namespace it returns it.

Takes a string of namespace name and a keyword. If the given keyword is not
namespace-qualified it returns a new keyword with the given namespace added. If the
given keyword is already equipped with a namespace it returns it.
sourceraw docstring

random-digits-lenclj

(random-digits-len x iteration shrink-now)
(random-digits-len x iteration shrink-now rng)

For 0 or 1 it returns its argument. For other positive numbers it returns a random natural number from 1 to this number (inclusive) in 50% cases. In other 50% cases it returns its argument.

For 0 or 1 it returns its argument. For other positive numbers it returns a random
natural number from 1 to this number (inclusive) in 50% cases. In other 50% cases
it returns its argument.
sourceraw docstring

replace-in-setclj

(replace-in-set s old-val new-val)
source

some-stringclj

(some-string s)
source

text-to-bytesclj

(text-to-bytes t)
source

to-bytesclj

(to-bytes obj)
source

to-longclj

(to-long s default)
source

try-nullcljmacro

(try-null & body)

Evaluates body and if NullPointerException exception is caught it returns nil. Otherwise it returns the value of last expression in the body.

Evaluates body and if NullPointerException exception is caught it returns
nil. Otherwise it returns the value of last expression in the body.
sourceraw docstring

try-parse-intclj

(try-parse-int s)

Returns integer from an object or nil if the given object does not contain valid integer.

Returns integer from an object or nil if the given object does not contain valid
integer.
sourceraw docstring

try-parse-longclj

(try-parse-long s)

Returns long from an object or nil if the given object does not contain valid long.

Returns long from an object or nil if the given object does not contain valid
long.
sourceraw docstring

try-upper-caseclj

(try-upper-case s)
source

uuidclj

(uuid s)
source

when-not-emptycljmacro

(when-not-empty val & body)

Evaluates body when the given value is a non-empty collection.

Evaluates body when the given value is a non-empty collection.
sourceraw docstring

with-not-emptyclj

(with-not-empty obj)

Returns the collection if it's not empty. Otherwise returns nil.

Returns the collection if it's not empty. Otherwise returns `nil`.
sourceraw docstring

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

× close