Liking cljdoc? Tell your friends :D

assistant.predicates


all?clj/s

(all? size pred target)

Determines if a sequence is of expected size and all entries pass the same predicate

Determines if a sequence is of expected size and all entries pass the same predicate
sourceraw docstring

bool?clj/s

(bool? x)

Is x true or false

Is x true or false
sourceraw docstring

count?clj/s

(count? size target)

Determines if sequence has expected size

Determines if sequence has expected size
sourceraw docstring

map-structure?clj/s

(map-structure? keys-pred vals-pred target)

Verifies that a map has all keys of the same type and values of a same type.

Verifies that a map has all keys of the same type and values of a same type.
sourceraw docstring

nil-or?clj/s

(nil-or? pred target)

Returns true if target is nil or passes predicate.

Returns true if target is nil or passes predicate.
sourceraw docstring

nilableclj/s

(nilable pred)

Wraps a predicate in a function that allows either the predicate to pass, or nil be allowed.

Wraps a predicate in a function that allows either the predicate to pass, or nil be allowed.
sourceraw docstring

same-size?clj/s

(same-size? & xs)

Are the provided collections the same count?

Are the provided collections the same count?
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close