fsprojects/FSharpx.Collections


IPersistentVector<'T>

Namespace: FSharpx.Collections
Parent Module: Interfaces

Instance members

Instance memberDescription
AssocN(arg1, arg2)
Signature: (int * 'T) -> IPersistentVector<'T>
Modifiers: abstract

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

Conj(arg1)
Signature: 'T -> IPersistentVector<'T>
Modifiers: abstract

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

Count()
Signature: unit -> int
Modifiers: abstract

Returns the number of items in the collection.

[arg1]
Signature: int -> 'T
Modifiers: abstract

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

CompiledName: get_Item

Peek()
Signature: unit -> 'T
Modifiers: abstract

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

Pop()
Signature: unit -> IPersistentVector<'T>
Modifiers: abstract

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

Fork me on GitHub