parallelChunks

Split a range into chunks, processing each chunk in parallel. Returns a dynamic array containing the result of calling fun on each chunk. fun is called at most once per CPU core.

  1. T[] parallelChunks(R range, T delegate(R) fun)
    T[]
    parallelChunks
    (
    R
    T
    )
    (,
    scope T delegate
    (
    R
    )
    fun
    )
    if (
    isRandomAccessRange!R
    )
  2. T[] parallelChunks(N total, T delegate(N start, N end) fun)
  3. auto parallelChunks(R range)
  4. auto parallelChunks(N total)

Meta