Liking cljdoc? Tell your friends :D

io.randomseed.utils

Random support functions and macros.

Random support functions and macros.
raw docstring

atom?clj

(atom? v)
source

b64-to-bytesclj

(b64-to-bytes s)
source

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

contains-some?clj

(contains-some? s1 s2)

Takes two indexed collections and returns true if at least one element is shared in both. Otherwise it returns false.

Takes two indexed collections and returns true if at least one element is shared in
both. Otherwise it returns false.
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

empty-ident?clj

(empty-ident? v)
source

empty-string?clj

(empty-string? s)
source

ensure-ident-keywordclj

(ensure-ident-keyword id)
source

ensure-keywordclj

(ensure-keyword id)
source

ensure-keyword-having-nsclj

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

ensure-namespaced-keywordclj

(ensure-namespaced-keyword id ns)
source

ensure-nsclj

(ensure-ns id ns)
source

ensure-strclj

(ensure-str v)
(ensure-str v & more)
source

exception?clj

(exception? v)
source

find-firstclj

(find-first f coll)
(find-first f coll not-found)

Returns the first item from coll for which (f item) returns true or nil if no such item is present. If the given not-found value is supplied, it will return it instead of nil.

Returns the first item from coll for which (f item) returns true or nil if no such
item is present. If the given not-found value is supplied, it will return it
instead of nil.
sourceraw docstring

fn-nameclj

(fn-name f)
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

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

insert-atclj

(insert-at index coll element)
source

instant?clj

(instant? v)
source

iscljmacro

(is pred val & body)
source

is-notcljmacro

(is-not pred val & body)
source

juxt-seqclj

(juxt-seq & functions)
source

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

normalize-nameclj

(normalize-name some-name)
(normalize-name some-name default-name)

Takes a name expressed as a string or an identifier. If the object is an identifier (a symbol or a keyword) then it converts it to a string using name function. If the second argument is present then it uses it when the given name or a name derived from identifier is empty.

Takes a name expressed as a string or an identifier. If the object is an identifier
(a symbol or a keyword) then it converts it to a string using name function. If the
second argument is present then it uses it when the given name or a name derived
from identifier is empty.
sourceraw docstring

normalize-name-with-nsclj

(normalize-name-with-ns some-name)
(normalize-name-with-ns some-name default-name)

Takes a name expressed as a string or an identifier. If the object is an identifier (a symbol or a keyword) then it converts it to a string using namespace and name functions. If the second argument is present then it uses it when the given name or a name derived from identifier is empty.

Takes a name expressed as a string or an identifier. If the object is an identifier
(a symbol or a keyword) then it converts it to a string using namespace and name
functions. If the second argument is present then it uses it when the given name or
a name derived from identifier is empty.
sourceraw docstring

normalize-to-bytesclj

(normalize-to-bytes t)
source

not-empty-ident?clj

(not-empty-ident? v)
source

not-empty-string?clj

(not-empty-string? s)
source

not-valuablecljmacro

(not-valuable & more)
source

not-valuable?clj

(not-valuable? x)
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

parse-longclj

(parse-long s)
(parse-long s default)
source

parse-numclj

(parse-num n)
(parse-num n default)
source

parse-percentclj

(parse-percent n)
(parse-percent n default)
source

parse-reclj

(parse-re v)
source

parse-urlclj

(parse-url u)

Parses URL into a map.

Parses URL into a map.
sourceraw docstring

percentclj

source

pos-valclj

(pos-val x)
source

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

random-uuidclj

(random-uuid)

Returns random UUID

Returns random UUID
sourceraw docstring

safe-parse-longclj

(safe-parse-long v)
(safe-parse-long v default)
source

safe-parse-numclj

(safe-parse-num v)
(safe-parse-num v default)
source

safe-parse-percentclj

(safe-parse-percent v)
(safe-parse-percent v default)
source

sanitize-base-urlclj

(sanitize-base-url url)
source

simple-keyword-upclj

(simple-keyword-up v)
source

some-keywordclj

(some-keyword v)
source

some-keyword-simpleclj

(some-keyword-simple v)
source

some-keyword-upclj

(some-keyword-up v)
source

some-strclj

(some-str v)
source

some-str-simpleclj

(some-str-simple v)
source

some-str-simple-downclj

(some-str-simple-down v)
source

some-str-simple-upclj

(some-str-simple-up v)
source

some-str-spcclj

(some-str-spc s & more)
source

some-str-upclj

(some-str-up v)
source

some-stringclj

(some-string s)
source

str-spcclj

(str-spc s & more)
source

text-to-bytesclj

(text-to-bytes t)
source

throwable?clj

(throwable? v)
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-requireclj

(try-require n)
source

uuidclj

(uuid)
(uuid s)
source

valuablecljmacro

(valuable & more)
source

valuable?clj

(valuable? x)
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

when-not-valuablecljmacro

(when-not-valuable v & more)
source

when-valuablecljmacro

(when-valuable v & more)
source

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