ForEach operation
Fully qualified name: Std.Arrays.ForEach
operation ForEach<'T, 'U>(action : ('T => 'U), array : 'T[]) : 'U[]
Given an array and an operation that is defined for the elements of the array, returns a new array that consists of the images of the original array under the operation.
The type of array
elements.
The result type of the action
operation.
An operation from 'T
to 'U
that is applied to each element.
An array of elements over 'T
.
An array 'U[]
of elements that are mapped by the action
operation.