(lazy-seq? v)(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 |