FSharpx.Collections


SkewBinaryRandomAccessList<'T> Type

Constructors

Constructor Description

SkewBinaryRandomAccessList(randomAccessList)

Full Usage: SkewBinaryRandomAccessList(randomAccessList)

Parameters:
    randomAccessList : (int * TreeSBRAL<'T>) list

Returns: SkewBinaryRandomAccessList<'T>
randomAccessList : (int * TreeSBRAL<'T>) list
Returns: SkewBinaryRandomAccessList<'T>

Instance members

Instance member Description

this.Cons(x)

Full Usage: this.Cons(x)

Parameters:
    x : 'T

Returns: SkewBinaryRandomAccessList<'T>

O(1), worst case. Returns a new random access list with the element added to the beginning.

x : 'T
Returns: SkewBinaryRandomAccessList<'T>

this.Head

Full Usage: this.Head

Returns: 'T

O(1), worst case. 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), worst case. Returns element by index.

i : int
Returns: 'T

this.Rev()

Full Usage: this.Rev()

Returns: SkewBinaryRandomAccessList<'T>

O(n). Returns random access list reversed.

Returns: SkewBinaryRandomAccessList<'T>

this.Tail

Full Usage: this.Tail

Returns: SkewBinaryRandomAccessList<'T>

O(1), worst case. Returns a new random access list of the elements trailing the first element.

Returns: SkewBinaryRandomAccessList<'T>

this.TryGetHead

Full Usage: this.TryGetHead

Returns: 'T option

O(1), worst case. Returns option first element.

Returns: 'T option

this.TryGetTail

Full Usage: this.TryGetTail

Returns: SkewBinaryRandomAccessList<'T> option

O(1), worst case. Returns a option random access list of the elements trailing the first element.

Returns: SkewBinaryRandomAccessList<'T> option

this.TryLookup(i)

Full Usage: this.TryLookup(i)

Parameters:
    i : int

Returns: 'T option

O(log n), worst case. Returns option element by index.

i : int
Returns: 'T option

this.TryUncons

Full Usage: this.TryUncons

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

O(1), worst case. Returns the option first element and tail.

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

this.TryUpdate(i) (y)

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

Parameters:
    i : int
    y : 'T

Returns: SkewBinaryRandomAccessList<'T> option

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

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

this.Uncons

Full Usage: this.Uncons

Returns: 'T * SkewBinaryRandomAccessList<'T>

O(1), worst case. Returns the first element and tail.

Returns: 'T * SkewBinaryRandomAccessList<'T>

this.Update(i) (y)

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

Parameters:
    i : int
    y : 'T

Returns: SkewBinaryRandomAccessList<'T>

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

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

this.randomAccessList

Full Usage: this.randomAccessList

Returns: (int * TreeSBRAL<'T>) list
Returns: (int * TreeSBRAL<'T>) list

Static members

Static member Description

SkewBinaryRandomAccessList.tryUpdate i y

Full Usage: SkewBinaryRandomAccessList.tryUpdate i y

Parameters:
    i : int
    y : 'T

Returns: (int * TreeSBRAL<'T>) list -> (int * TreeSBRAL<'T>) list option
i : int
y : 'T
Returns: (int * TreeSBRAL<'T>) list -> (int * TreeSBRAL<'T>) list option

SkewBinaryRandomAccessList.tryUpdateTree

Full Usage: SkewBinaryRandomAccessList.tryUpdateTree

Returns: int * int * 'T * TreeSBRAL<'T> -> TreeSBRAL<'T> option
Returns: int * int * 'T * TreeSBRAL<'T> -> TreeSBRAL<'T> option

SkewBinaryRandomAccessList.update i y

Full Usage: SkewBinaryRandomAccessList.update i y

Parameters:
    i : int
    y : 'T

Returns: (int * TreeSBRAL<'T>) list -> (int * TreeSBRAL<'T>) list
i : int
y : 'T
Returns: (int * TreeSBRAL<'T>) list -> (int * TreeSBRAL<'T>) list

SkewBinaryRandomAccessList.updateTree

Full Usage: SkewBinaryRandomAccessList.updateTree

Returns: int * int * 'T * TreeSBRAL<'T> -> TreeSBRAL<'T>
Returns: int * int * 'T * TreeSBRAL<'T> -> TreeSBRAL<'T>