Module type Parallel_arrays.Init

type 'a t
type 'a init
val init : Parallel_kernel.t @ local -> ('a init -> (f:(Parallel_kernel.t @ local -> (Base.int -> 'a) @ local) @ shareable -> 'a t) @ local) @ local @@ portable

init parallel n ~f initializes an array with the result of f applied to the integers 0..n-1.