Header menu logo FSharp.Core

ArrayExtensions Module

Contains extension methods to allow the use of F# indexer notation with arrays.
 This module is automatically opened in all F# code.

Type extensions

Type extension Description

this.GetReverseIndex

Full Usage: this.GetReverseIndex

Parameters:
    rank : int - The rank of the index. This refers to the dimension in the 4d array.
    offset : int - The offset from the end.

Returns: int The corresponding index from the start.

Get the index for the element offset elements away from the end of the collection.

Extended Type: [,,,]

rank : int

The rank of the index. This refers to the dimension in the 4d array.

offset : int

The offset from the end.

Returns: int

The corresponding index from the start.

this.GetReverseIndex

Full Usage: this.GetReverseIndex

Parameters:
    rank : int - The rank of the index. This refers to the dimension in the 3d array.
    offset : int - The offset from the end.

Returns: int The corresponding index from the start.

Get the index for the element offset elements away from the end of the collection.

Extended Type: [,,]

rank : int

The rank of the index. This refers to the dimension in the 3d array.

offset : int

The offset from the end.

Returns: int

The corresponding index from the start.

this.GetReverseIndex

Full Usage: this.GetReverseIndex

Parameters:
    rank : int - The rank of the index. This refers to the dimension in the 2d array.
    offset : int - The offset from the end.

Returns: int The corresponding index from the start.

Get the index for the element offset elements away from the end of the collection.

Extended Type: [,]

rank : int

The rank of the index. This refers to the dimension in the 2d array.

offset : int

The offset from the end.

Returns: int

The corresponding index from the start.

this.GetReverseIndex

Full Usage: this.GetReverseIndex

Parameters:
    rank : int - The rank of the index.
    offset : int - The offset from the end.

Returns: int The corresponding index from the start.

Get the index for the element offset elements away from the end of the collection.

Extended Type: []

rank : int

The rank of the index.

offset : int

The offset from the end.

Returns: int

The corresponding index from the start.

this.GetReverseIndex

Full Usage: this.GetReverseIndex

Parameters:
    rank : int - The rank of the index.
    offset : int - The offset from the end.

Returns: int The corresponding index from the start.

Get the index for the element offset elements away from the end of the collection.

Extended Type: String

rank : int

The rank of the index.

offset : int

The offset from the end.

Returns: int

The corresponding index from the start.

Type something to start searching.