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)
  2. T[] parallelChunks(N total, T delegate(N start, N end) fun)
    T[]
    parallelChunks
    (
    N
    T
    )
    (,
    scope T delegate
    (,
    N end
    )
    fun
    )
    if (
    is(N : ulong)
    )
  3. auto parallelChunks(R range)
  4. auto parallelChunks(N total)

Meta