(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.
(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.
(re-linked re s & {:keys [throw-exceptions] :as opts})
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close