Property | Type | Description | |
---|---|---|---|
EMPTY |
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
PersistentTreeSet ( IPersistentMap meta, IPersistentMap impl ) : System |
Initialize a
|
public comparator ( ) : System.Collections.IComparer | ||
return | System.Collections.IComparer |
public cons ( object o ) : IPersistentCollection | ||
o | object | An item to put at the front of the collection. |
return | IPersistentCollection |
public static create ( IList init ) : |
||
init | IList | A list of elements |
return |
public static create ( ISeq init ) : |
||
init | ISeq | A sequence of elements. |
return |
public disjoin ( object key ) : IPersistentSet | ||
key | object | The item to remove. |
return | IPersistentSet |
public entryKey ( object entry ) : object | ||
entry | object | An element in the collection. |
return | object |
public seq ( bool ascending ) : ISeq | ||
ascending | bool | A flag indicating if the iteration is ascending or descending. |
return | 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. |
return | ISeq |
public withMeta ( IPersistentMap meta ) : IObj | ||
meta | IPersistentMap | The new metadata. |
return | IObj |