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 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
Version Information
F# Core Library Versions
Supported in: 4.0