C# Класс clojure.lang.PersistentVector

Наследование: APersistentVector, IObj, IEditableCollection, IEnumerable, IReduce
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
PersistentVector ( int cnt, int shift, Node root, object tail ) : System

Initialize a PersistentVector from basic components.

asTransient ( ) : ITransientCollection
assocN ( int i, Object val ) : IPersistentVector

Return a new vector with the i-th value set to val.

length ( ) : int

Gets the number of items in the vector.

Not sure why you wouldn't use count() intead.

meta ( ) : IPersistentMap
nth ( int i, Object notFound ) : Object
nth ( int i ) : object

Get the i-th item in the vector.

Throws an exception if the index i is not in the range of the vector's elements.

pop ( ) : IPersistentStack

Returns a new stack with the top element popped.

seq ( ) : ISeq
withMeta ( IPersistentMap meta ) : IObj

Приватные методы

Метод Описание
ArrayFor ( int i ) : object[]
PersistentVector ( IPersistentMap meta, int cnt, int shift, Node root, object tail ) : System

Initialize a PersistentVector from given metadata and basic components.

chunkedSeq ( ) : IChunkedSeq
cons ( object o ) : IPersistentVector
count ( ) : int
create ( ) : PersistentVector
create ( ISeq items ) : PersistentVector
create1 ( ICollection items ) : PersistentVector
doAssoc ( int level, Node node, int i, object val ) : Node
empty ( ) : IPersistentCollection
newPath ( AtomicReference edit, int level, Node node ) : Node
popTail ( int level, Node node ) : Node
pushTail ( int level, Node parent, Node tailnode ) : Node
tailoff ( ) : int

Описание методов

PersistentVector() публичный Метод

Initialize a PersistentVector from basic components.
public PersistentVector ( int cnt, int shift, Node root, object tail ) : System
cnt int
shift int
root Node
tail object
Результат System

asTransient() публичный Метод

public asTransient ( ) : ITransientCollection
Результат ITransientCollection

assocN() публичный Метод

Return a new vector with the i-th value set to val.
public assocN ( int i, Object val ) : IPersistentVector
i int The index of the item to set.
val Object The new value
Результат IPersistentVector

length() публичный Метод

Gets the number of items in the vector.
Not sure why you wouldn't use count() intead.
public length ( ) : int
Результат int

meta() публичный Метод

public meta ( ) : IPersistentMap
Результат IPersistentMap

nth() публичный Метод

public nth ( int i, Object notFound ) : Object
i int
notFound Object
Результат Object

nth() публичный Метод

Get the i-th item in the vector.
Throws an exception if the index i is not in the range of the vector's elements.
public nth ( int i ) : object
i int The index of the item to retrieve/
Результат object

pop() публичный Метод

Returns a new stack with the top element popped.
public pop ( ) : IPersistentStack
Результат IPersistentStack

seq() публичный Метод

public seq ( ) : ISeq
Результат ISeq

withMeta() публичный Метод

public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap
Результат IObj