ClojureDocs

Nav

Namespaces

keep-indexed

clojure.core

Available since 1.2 (source)
  • (keep-indexed f)
  • (keep-indexed 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.