ClojureDocs

导航

命名空间

keep-indexed

clojure.core

自 1.2 版本开始提供 (源码)
  • (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.