(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.
(list-or-cons? v)(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.
(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.
(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.
(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.
(vector-or-chunked? v)cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |