ClojureDocs

导航

命名空间

partition-by

clojure.core

自 1.2 版本起可用 (源代码)
  • (partition-by f)
  • (partition-by f coll)
Applies f to each value in coll, splitting it each time f returns a
 new value.  Returns a lazy seq of partitions.  Returns a stateful
 transducer when no collection is provided.