FSharpx.Collections


AltBinRndAccList<'T> Type

Union cases

Union case Description

Nil

Full Usage: Nil

One('T, AltBinRndAccList<'T * 'T>)

Full Usage: One('T, AltBinRndAccList<'T * 'T>)

Parameters:
Item1 : 'T
Item2 : AltBinRndAccList<'T * 'T>

Zero AltBinRndAccList<'T * 'T>

Full Usage: Zero AltBinRndAccList<'T * 'T>

Parameters:
Item : AltBinRndAccList<'T * 'T>

Instance members

Instance member Description

this.Cons(x)

Full Usage: this.Cons(x)

Parameters:
    x : 'T

Returns: AltBinRndAccList<'T>

O(log n). Returns a new random access list with the element added to the beginning.

x : 'T
Returns: AltBinRndAccList<'T>

this.Head

Full Usage: this.Head

Returns: 'T

O(log n). Returns the first element.

Returns: 'T

this.IsEmpty

Full Usage: this.IsEmpty

Returns: bool

O(1). Returns true if the random access list has no elements.

Returns: bool

this.Length()

Full Usage: this.Length()

Returns: int

O(log n). Returns the count of elements.

Returns: int

this.Lookup(i)

Full Usage: this.Lookup(i)

Parameters:
    i : int

Returns: 'T

O(log n). Returns element by index.

i : int
Returns: 'T

this.Remove(i)

Full Usage: this.Remove(i)

Parameters:
    i : int

Returns: AltBinRndAccList<'T>

O(n). Returns random access list with element removed by index.

i : int
Returns: AltBinRndAccList<'T>

this.Rev()

Full Usage: this.Rev()

Returns: AltBinRndAccList<'T>

O(n). Returns random access list reversed.

Returns: AltBinRndAccList<'T>

this.Tail

Full Usage: this.Tail

Returns: AltBinRndAccList<'T>

O(log n). Returns a new random access list of the elements trailing the first element.

Returns: AltBinRndAccList<'T>

this.TryGetHead()

Full Usage: this.TryGetHead()

Returns: 'T option

O(log n). Returns option first element.

Returns: 'T option

this.TryGetTail

Full Usage: this.TryGetTail

Returns: AltBinRndAccList<'T> option

O(log n). Returns a option random access list of the elements trailing the first element.

Returns: AltBinRndAccList<'T> option

this.TryLookup(i)

Full Usage: this.TryLookup(i)

Parameters:
    i : int

Returns: 'T option

O(log n). Returns option element by index.

i : int
Returns: 'T option

this.TryRemove(i)

Full Usage: this.TryRemove(i)

Parameters:
    i : int

Returns: AltBinRndAccList<'T> option

O(n). Returns option random access list with element removed by index.

i : int
Returns: AltBinRndAccList<'T> option

this.TryUncons

Full Usage: this.TryUncons

Returns: ('T * AltBinRndAccList<'T>) option

O(log n). Returns the option first element and tail.

Returns: ('T * AltBinRndAccList<'T>) option

this.TryUpdate(i) (y)

Full Usage: this.TryUpdate(i) (y)

Parameters:
    i : int
    y : 'T

Returns: AltBinRndAccList<'T> option

O(log n). Returns option random access list with element updated by index.

i : int
y : 'T
Returns: AltBinRndAccList<'T> option

this.Uncons

Full Usage: this.Uncons

Returns: 'T * AltBinRndAccList<'T>

O(log n). Returns the first element and tail.

Returns: 'T * AltBinRndAccList<'T>

this.Update(i) (y)

Full Usage: this.Update(i) (y)

Parameters:
    i : int
    y : 'T

Returns: AltBinRndAccList<'T>

O(log n). Returns random access list with element updated by index.

i : int
y : 'T
Returns: AltBinRndAccList<'T>