Свойство | Тип | Описание | |
---|---|---|---|
EMPTY |
Метод | Описание | |
---|---|---|
comparator ( ) : System.Collections.IComparer |
Returns the comparer used to sort the elements in the collection. Would be called |
|
cons ( object o ) : IPersistentCollection |
Returns a new collection that has the given element cons'd on front of the existing collection.
|
|
create ( ) : |
Create a
|
|
create ( IList init ) : |
Create a
|
|
create ( ISeq init ) : |
Create a
|
|
disjoin ( object key ) : IPersistentSet |
Get a set with the given item removed.
|
|
empty ( ) : IPersistentCollection |
Gets an empty collection of the same type.
|
|
entryKey ( object entry ) : object |
Returns the key to be passed to the comparator to sort the element.
|
|
rseq ( ) : ISeq |
Gets an
|
|
seq ( bool ascending ) : ISeq |
Returns an
|
|
seqFrom ( object key, bool ascending ) : ISeq |
Returns an The key need not be in the collection. If not present, the iteration will start with the first element with a key greater than (if asscending) or less than (if descending) the given key. |
|
withMeta ( IPersistentMap meta ) : IObj |
Create a copy with new metadata.
|
Метод | Описание | |
---|---|---|
PersistentTreeSet ( IPersistentMap meta, IPersistentMap impl ) : System |
Initialize a
|
public comparator ( ) : System.Collections.IComparer | ||
Результат | System.Collections.IComparer |
public cons ( object o ) : IPersistentCollection | ||
o | object | An item to put at the front of the collection. |
Результат | IPersistentCollection |
public static create ( ) : |
||
Результат |
public static create ( IList init ) : |
||
init | IList | A list of elements |
Результат |
public static create ( ISeq init ) : |
||
init | ISeq | A sequence of elements. |
Результат |
public disjoin ( object key ) : IPersistentSet | ||
key | object | The item to remove. |
Результат | IPersistentSet |
public entryKey ( object entry ) : object | ||
entry | object | An element in the collection. |
Результат | object |
public seq ( bool ascending ) : ISeq | ||
ascending | bool | A flag indicating if the iteration is ascending or descending. |
Результат | ISeq |
public seqFrom ( object key, bool ascending ) : ISeq | ||
key | object | The key at which to start the iteration. |
ascending | bool | A flag indicating if the iteration is ascending or descending. |
Результат | ISeq |
public withMeta ( IPersistentMap meta ) : IObj | ||
meta | IPersistentMap | The new metadata. |
Результат | IObj |