Nemerle Documentation

ICollection Members

ICollection overview

Public Instance Properties

Count Returns the number of elements in this collection.
IsEmpty Returns `true' if the collection is empty.

Public Instance Methods

Add Adds an element to the collection.
Clear Clears the collection.
Clone Creates a shallow copy of this collection.
Contains Checks if the specified element `x' is a member of the collection.
Exists Checks if there exists a member of collection that satisfies the supplied condition.
Filter Filters the collection removing all elements that do not satisfy the supplied predicate.
First Returns the first of the collection elements, if there is one. Throws EmptyCollection exception otherwise.
Fold Folds the collection using the specified fold function and an initial value. Order in which the elements are folded is unspecified.
ForAll Checks if all the members of this collection satisfy the supplied predicate.
Iter Calls the supplied function for all the elements of this collection.
Map Maps the supplied function to the elements of this collection, creating a new collection.
Partition Partitions collection into two collections: elements that satisfy and elements that do not satisfy the supplied predicate.
Remove Removes an element from the collection

See Also

ICollection Interface | Nemerle.Collections Namespace