FSharpx.Collections


AltBinaryRandomAccessList Module

Functions and values

Function or value Description

AltBinaryRandomAccessList.append xs ys

Full Usage: AltBinaryRandomAccessList.append xs ys

Parameters:
Returns: AltBinRndAccList<'a>

O(xs). Returns random access list from elements of 2 random access lists concatenated.

xs : AltBinRndAccList<'a>
ys : AltBinRndAccList<'a>
Returns: AltBinRndAccList<'a>

AltBinaryRandomAccessList.cons x xs

Full Usage: AltBinaryRandomAccessList.cons x xs

Parameters:
Returns: AltBinRndAccList<'T>

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

x : 'T
xs : AltBinRndAccList<'T>
Returns: AltBinRndAccList<'T>

AltBinaryRandomAccessList.empty

Full Usage: AltBinaryRandomAccessList.empty

Returns: AltBinRndAccList<'a>

O(1). Returns a empty random access list.

Returns: AltBinRndAccList<'a>

AltBinaryRandomAccessList.head xs

Full Usage: AltBinaryRandomAccessList.head xs

Parameters:
Returns: 'a

O(log n). Returns the first element.

xs : AltBinRndAccList<'a>
Returns: 'a

AltBinaryRandomAccessList.isEmpty xs

Full Usage: AltBinaryRandomAccessList.isEmpty xs

Parameters:
Returns: bool

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

xs : AltBinRndAccList<'T>
Returns: bool

AltBinaryRandomAccessList.length xs

Full Usage: AltBinaryRandomAccessList.length xs

Parameters:
Returns: int

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

xs : AltBinRndAccList<'T>
Returns: int

AltBinaryRandomAccessList.lookup i xs

Full Usage: AltBinaryRandomAccessList.lookup i xs

Parameters:
Returns: 'a

O(log n). Returns element by index.

i : int
xs : AltBinRndAccList<'a>
Returns: 'a

AltBinaryRandomAccessList.ofSeq s

Full Usage: AltBinaryRandomAccessList.ofSeq s

Parameters:
    s : seq<'a>

Returns: AltBinRndAccList<'a>

O(n). Returns random access list from the sequence.

s : seq<'a>
Returns: AltBinRndAccList<'a>

AltBinaryRandomAccessList.remove i xs

Full Usage: AltBinaryRandomAccessList.remove i xs

Parameters:
Returns: AltBinRndAccList<'T>

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

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

AltBinaryRandomAccessList.rev xs

Full Usage: AltBinaryRandomAccessList.rev xs

Parameters:
Returns: AltBinRndAccList<'T>

O(n). Returns random access list reversed.

xs : AltBinRndAccList<'T>
Returns: AltBinRndAccList<'T>

AltBinaryRandomAccessList.tail xs

Full Usage: AltBinaryRandomAccessList.tail xs

Parameters:
Returns: AltBinRndAccList<'a>

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

xs : AltBinRndAccList<'a>
Returns: AltBinRndAccList<'a>

AltBinaryRandomAccessList.tryGetHead xs

Full Usage: AltBinaryRandomAccessList.tryGetHead xs

Parameters:
Returns: 'a option

O(log n). Returns option first element.

xs : AltBinRndAccList<'a>
Returns: 'a option

AltBinaryRandomAccessList.tryGetTail xs

Full Usage: AltBinaryRandomAccessList.tryGetTail xs

Parameters:
Returns: AltBinRndAccList<'a> option

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

xs : AltBinRndAccList<'a>
Returns: AltBinRndAccList<'a> option

AltBinaryRandomAccessList.tryLookup i xs

Full Usage: AltBinaryRandomAccessList.tryLookup i xs

Parameters:
Returns: 'a option

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

i : int
xs : AltBinRndAccList<'a>
Returns: 'a option

AltBinaryRandomAccessList.tryRemove i xs

Full Usage: AltBinaryRandomAccessList.tryRemove i xs

Parameters:
Returns: AltBinRndAccList<'T> option

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

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

AltBinaryRandomAccessList.tryUncons xs

Full Usage: AltBinaryRandomAccessList.tryUncons xs

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

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

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

AltBinaryRandomAccessList.tryUpdate i y xs

Full Usage: AltBinaryRandomAccessList.tryUpdate i y xs

Parameters:
Returns: AltBinRndAccList<'T> option

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

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

AltBinaryRandomAccessList.uncons xs

Full Usage: AltBinaryRandomAccessList.uncons xs

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

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

xs : AltBinRndAccList<'T>
Returns: 'T * AltBinRndAccList<'T>

AltBinaryRandomAccessList.update i y xs

Full Usage: AltBinaryRandomAccessList.update i y xs

Parameters:
Returns: AltBinRndAccList<'T>

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

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

Active patterns

Active pattern Description

AltBinaryRandomAccessList.(|Cons|Nil|) l

Full Usage: AltBinaryRandomAccessList.(|Cons|Nil|) l

Parameters:
Returns: Choice<('T * AltBinRndAccList<'T>), unit>
l : AltBinRndAccList<'T>
Returns: Choice<('T * AltBinRndAccList<'T>), unit>