Nemerle Documentation

IMap Members

IMap overview

Public Instance Properties

Count Returns the number of elements in THIS IMap
IsEmpty Checks if there are any elements in the map.
Size Returns the number of elements in THIS IMap

Public Instance Methods

Add Method returns a IMap ('a, 'b) with added pair (k, v)
Clear Method returns an empty IMap ['a, 'b]
Copy Method returns a copy of THIS IMap ['a, 'b]
Exists Method returns true if and only if there exists such pair (X,Y) of THIS IMap ('a,'b) that FUNC(X,Y) is true
Filter Method returns an IMAP that consists of THIS pair (X,Y) of THIS IMap that FUNC(X) is true
Find Method finds and returns a value associated with key K (if there is no such value then None is returned)
First Method returns some value that is contained in IMap Note: This value depends on IMap manipulation
Fold Method goes through each of THIS IMap pair and counts cumulative value of function FUNC with intial value INI
ForAll Method returns true if and only if for every pair (X,Y) of THIS IMap ('a,'b) FUNC(X,Y) is true
Get Returns the value associated with a key.
Iter Method goes through each of THIS Imap pair (X,Y) and computes FUNC (X,Y)
Member Method return true if a key K is contained in THIS IMap
Partition Method returns IMAP1 * IMAP2 where IMAP1 consists of this pair (X,Y) of IMAP1 that FUNC(X) is true and IMAP2 contains all this pairs of THIS IMap that are not in IMAP1.
Remove Method returns THIS IMap with removed key K and associated value
Replace Method returns THIS IMap with replaced pair (K,V)

See Also

IMap Interface | Nemerle.Collections Namespace