Collections.Array3D Module (F#)

Basic operations on rank 3 arrays.

Namespace/Module Path: Microsoft.FSharp.Collections

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

module Array3D

Values

Value

Description

create : int -> int -> int -> int -> 'T -> 'T [,,]

Creates an array whose elements are all initially the given value.

get : 'T [,,] -> int -> int -> int -> 'T

Fetches an element from a 3D array. You can also use the syntax array.[index1,index2,index3].

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

Creates an array given the dimensions and a generator function to compute the elements.

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

Applies the given function to each element of the array.

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

Applies the given function to each element of the array. The integer indices passed to the function indicate the index of element.

length1 : 'T [,,] -> int

Returns the length of an array in the first dimension

length2 : 'T [,,] -> int

Returns the length of an array in the second dimension.

length3 : 'T [,,] -> int

Returns the length of an array in the third dimension.

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

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

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

Builds a new array whose elements are the results of applying the given function to each of the elements of the array. The integer indices passed to the function indicate the element being transformed.

set : 'T [,,] -> int -> int -> int -> 'T -> unit

Sets the value of an element in an array. You can also use the syntax array.[index1,index2,index3] <- value.

zeroCreate : int -> int -> int -> 'T [,,]

Creates an array where the entries are initially the default value.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Reference

Microsoft.FSharp.Collections Namespace (F#)