Header menu logo Euclid

AutoOpenEuclidResizeArrayExtensions Module

Type extensions

Type extension Description

this.First

Full Usage: this.First

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the first item in the Euclid.ResizeArr. Equal to this.[0]

Extended Type: List

() : unit
Returns: 'T

this.GetLooped

Full Usage: this.GetLooped

Parameters:
    i : int

Returns: 'T
Modifiers: inline

Any integer becomes a valid index, even negative. -1 is the last item, -2 is the second last, etc.

Extended Type: List

i : int
Returns: 'T

this.IsEmpty

Full Usage: this.IsEmpty

Parameters:
    () : unit

Returns: bool
Modifiers: inline

true if this.Count = 0

Extended Type: List

() : unit
Returns: bool

this.Last

Full Usage: this.Last

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the last item in the ResizeArr. Equal to this.[this.Count - 1]

Extended Type: List

() : unit
Returns: 'T

this.LastIndex

Full Usage: this.LastIndex

Parameters:
    () : unit

Returns: int
Modifiers: inline

Gets the index of the last item in the ResizeArr. Equal to this.Count - 1

Extended Type: List

() : unit
Returns: int

this.Pop

Full Usage: this.Pop

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get and remove last item from ResizeArr.

Extended Type: List

() : unit
Returns: 'T

this.Pop

Full Usage: this.Pop

Parameters:
    index : int

Returns: 'T
Modifiers: inline

Get and remove item at index from ResizeArr.

Extended Type: List

index : int
Returns: 'T

this.Second

Full Usage: this.Second

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the second item in the ResizeArr. Equal to this.[1]

Extended Type: List

() : unit
Returns: 'T

this.SecondLast

Full Usage: this.SecondLast

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the second last item in the ResizeArr. Equal to this.[this.Count - 2]

Extended Type: List

() : unit
Returns: 'T

this.SetIdx

Full Usage: this.SetIdx

Parameters:
    i : int
    v : 'T

Modifiers: inline

Extended Type: List

i : int
v : 'T

this.Third

Full Usage: this.Third

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the third item in the ResizeArr. Equal to this.[2]

Extended Type: List

() : unit
Returns: 'T

this.ThirdLast

Full Usage: this.ThirdLast

Parameters:
    () : unit

Returns: 'T
Modifiers: inline

Get (or set) the second last item in the ResizeArr. Equal to this.[this.Count - 2]

Extended Type: List

() : unit
Returns: 'T

Type something to start searching.