Liking cljdoc? Tell your friends :D

kigen.position

Getting the indices of elements in vectors by giving a predicate or by equality.

Getting the indices of elements in vectors by giving a predicate
or by equality.
raw docstring

indexclj

(index v elt)

Getting the first index of an element in a vector.

Getting the first index of an element in a vector.
sourceraw docstring

positionclj

(position pred v)

Getting the index of the first element satisfying a predicate.

Getting the index of the first element satisfying a predicate.
sourceraw docstring

positionsclj

(positions pred v)

All positions of elements of a vector satisfying a predicate.

All positions of elements of a vector satisfying a predicate.
sourceraw docstring

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

× close