Skip to main content

keep-indexed

functionv1.2

clojure.core/keep-indexed

Available in:BBCLJCLJS
(keep-indexed [f] [f coll])
Returns a lazy sequence of the non-nil results of (f index item). Note, this means false return values will be included. f must be free of side-effects. Returns a stateful transducer when no collection is provided.

No examples yet. Be the first to add one!