ClojureDocs

导航

命名空间

pmap

clojure.core

自 1.0 起可用 (源代码)
  • (pmap f coll)
  • (pmap f coll & colls)
Like map, except f is applied in parallel. Semi-lazy in that the
parallel computation stays ahead of the consumption, but doesn't
realize the entire result unless required. Only useful for
computationally intensive functions where the time of f dominates
the coordination overhead.