C# Class clojure.lang.PersistentHashSet

Inheritance: APersistentSet, IObj, IEditableCollection
Show file Open project: richhickey/clojure-clr Class Usage Examples

Public Methods

Method Description
asTransient ( ) : ITransientCollection
cons ( object o ) : IPersistentCollection

Returns a new collection that has the given element cons'd on front of the existing collection.

disjoin ( object key ) : IPersistentSet

Get a set with the given item removed.

empty ( ) : IPersistentCollection

Gets an empty collection of the same type.

meta ( ) : IPersistentMap
withMeta ( IPersistentMap meta ) : IObj

Create a copy with new metadata.

Private Methods

Method Description
PersistentHashSet ( IPersistentMap meta, IPersistentMap impl ) : System

Initialize a PersistentHashSet to use given metadata and underlying map.

create ( ) : PersistentHashSet
create ( IList init ) : PersistentHashSet
create ( ISeq items ) : PersistentHashSet
createWithCheck ( ) : PersistentHashSet
createWithCheck ( IList init ) : PersistentHashSet
createWithCheck ( ISeq items ) : PersistentHashSet

Method Details

asTransient() public method

public asTransient ( ) : ITransientCollection
return ITransientCollection

cons() public method

Returns a new collection that has the given element cons'd on front of the existing collection.
public cons ( object o ) : IPersistentCollection
o object An item to put at the front of the collection.
return IPersistentCollection

disjoin() public method

Get a set with the given item removed.
public disjoin ( object key ) : IPersistentSet
key object The item to remove.
return IPersistentSet

empty() public method

Gets an empty collection of the same type.
public empty ( ) : IPersistentCollection
return IPersistentCollection

meta() public method

public meta ( ) : IPersistentMap
return IPersistentMap

withMeta() public method

Create a copy with new metadata.
public withMeta ( IPersistentMap meta ) : IObj
meta IPersistentMap The new metadata.
return IObj