Liking cljdoc? Tell your friends :D

semvera.util


compare-chainclj/smacro

(compare-chain)
(compare-chain x)
(compare-chain x & next)

This is a convenience macro for writing comparators with complex precedence rules.

Continues comparing down the chain until a comparison returns not equal (a value other than 0 or nil). Otherwise, the two values are considered equal and 0 is returned.

This is a convenience macro for writing comparators with complex
precedence rules.

Continues comparing down the chain until a comparison returns
not equal (a value other than 0 or nil). Otherwise, the two
values are considered equal and 0 is returned.
sourceraw docstring

parse-natural-numberclj/s

(parse-natural-number s & {:keys [throw-exceptions] :as opts})

Parses a string to a natural number. Returns nil if not given valid input, unless :throws-exception is set. This function also automatically promotes to BigInt if needed.

Parses a string to a natural number. Returns `nil` if not given
valid input, unless `:throws-exception` is set. This function also
automatically promotes to `BigInt` if needed.
sourceraw docstring

re-linkedclj/s≠

(re-linked re s & {:keys [throw-exceptions] :as opts})
clj

Returns a collection of successive matches of pattern in string, but allowing no gaps between the matches. In other words, the end index of the first match must be equal to the start index of the second match, and so on until there are no more matches left.

Returns a collection of successive matches of pattern in string,
but allowing no gaps between the matches. In other words, the
`end` index of the first match must be equal to the `start` index
of the second match, and so on until there are no more matches left.
source (clj)source (cljs)raw docstring

regexclj/s

(regex re)
source

throw-illegal-argument-exceptionclj/s

(throw-illegal-argument-exception message)
source

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

× close