Array.Parallel Module (F#)

Provides parallel operations on arrays

Namespace/Module Path: Microsoft.FSharp.Collections.Array

Assembly: FSharp.Core (in FSharp.Core.dll)

module Parallel

Values

Value

Description

choose : ('T -> 'U option) -> 'T [] -> 'U []

Apply the given function to each element of the array. Return the array comprised of the results "x" for each element where the function returns Some(x).

collect : ('T -> 'U []) -> 'T [] -> 'U []

For each element of the array, apply the given function. Concatenate all the results and return the combined array.

init : int -> (int -> 'T) -> 'T []

Create an array given the dimension and a generator function to compute the elements.

iter : ('T -> unit) -> 'T [] -> unit

Apply the given function to each element of the array.

iteri : (int -> 'T -> unit) -> 'T [] -> unit

Apply the given function to each element of the array. The integer passed to the function indicates the index of element.

map : ('T -> 'U) -> 'T [] -> 'U []

Build a new array whose elements are the results of applying the given function to each of the elements of the array.

mapi : (int -> 'T -> 'U) -> 'T [] -> 'U []

Build a new array whose elements are the results of applying the given function to each of the elements of the array. The integer index passed to the function indicates the index of element being transformed.

partition : ('T -> bool) -> 'T [] -> 'T [] * 'T []

Split the collection into two collections, containing the elements for which the given predicate returns "true" and "false" respectively

Platforms

Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2

Version Information

F# Runtime

Supported in: 4.0

Silverlight

Not supported

See Also

Reference

Collections.Array Module (F#)