(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close