Liking cljdoc? Tell your friends :D

xitdb.util.validation


lazy-seq?clj

(lazy-seq? v)

True when v is a seq that produces its elements on demand: a LazySeq (from map, concat, take...) or an iterate/cycle seq, which covers (range). Such a seq may be infinite, so writing it could never finish. Seqs whose first cells already exist (cons, (seq (concat ...))) and repeat are not pending and are written like lists.

True when `v` is a seq that produces its elements on demand: a LazySeq (from
`map`, `concat`, `take`...) or an `iterate`/`cycle` seq, which covers `(range)`.
Such a seq may be infinite, so writing it could never finish. Seqs whose
first cells already exist (`cons`, `(seq (concat ...))`) and `repeat` are not
pending and are written like lists.
raw docstring

list-or-cons?clj

(list-or-cons? v)

validate-index-boundsclj

(validate-index-bounds i count operation-name)

Validates that index i is within bounds for a collection of given count. Throws IllegalArgumentException if out of bounds.

Validates that index i is within bounds for a collection of given count.
Throws IllegalArgumentException if out of bounds.
raw docstring

validate-non-emptyclj

(validate-non-empty count operation-name)

Validates that a collection is not empty. Throws IllegalStateException if empty.

Validates that a collection is not empty.
Throws IllegalStateException if empty.
raw docstring

validate-not-lazy-seqclj

(validate-not-lazy-seq v)

Validates that a value is not a lazy sequence. Throws IllegalArgumentException if it is a lazy sequence.

Validates that a value is not a lazy sequence.
Throws IllegalArgumentException if it is a lazy sequence.
raw docstring

validate-supported-typeclj

(validate-supported-type v)

Validates that a type is supported for conversion. Throws IllegalArgumentException for unsupported types.

Validates that a type is supported for conversion.
Throws IllegalArgumentException for unsupported types.
raw docstring

vector-or-chunked?clj

(vector-or-chunked? v)

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close