FSharpx.Collections


IPersistentVector<'T> Type

Instance members

Instance member Description

this.AssocN(arg1, arg2)

Full Usage: this.AssocN(arg1, arg2)

Parameters:
    arg0 : int
    arg1 : 'T

Returns: IPersistentVector<'T>
Modifiers: abstract

Returns a new vector that contains the given value at the index. Note - index must be <= vector.Count.

arg0 : int
arg1 : 'T
Returns: IPersistentVector<'T>

this.Conj(arg1)

Full Usage: this.Conj(arg1)

Parameters:
    arg0 : 'T

Returns: IPersistentVector<'T>
Modifiers: abstract

Returns a new vector with the element 'added' at the end.

arg0 : 'T
Returns: IPersistentVector<'T>

this.Count()

Full Usage: this.Count()

Returns: int
Modifiers: abstract

Returns the number of items in the collection.

Returns: int

this.[arg1]

Full Usage: this.[arg1]

Parameters:
    arg0 : int

Returns: 'T
Modifiers: abstract

Returns the value at the index. If the index is out of bounds it throws an exception.

arg0 : int
Returns: 'T

this.Peek()

Full Usage: this.Peek()

Returns: 'T
Modifiers: abstract

Returns the last element in the vector. If the vector is empty it throws an exception.

Returns: 'T

this.Pop()

Full Usage: this.Pop()

Returns: IPersistentVector<'T>
Modifiers: abstract

Returns a new vector without the last item. If the collection is empty it throws an exception.

Returns: IPersistentVector<'T>