Nemerle Library
Namespace Nemerle.Collections
class DictionaryEntry

OBSOLETE

Remark:

Dictionary entry.

abstract public interface class DictionaryEntry`2
class public EmptyCollection

Exception thrown when an element access operation is performed on an empty ICollection object.

Methods:
.ctor
ctor(string)
Fields:
msg
class public EmptyHeap

A handy shortcut for the EmptyCollection exception.

Methods:
.ctor
ctor
class Hashtable

This is a subtype of Generic.Dictionary, which provides some additional functional-style methods to its base type.

Methods:
ctor(int)

Creates an empty hashtable

Creates an empty hashtable and sets its default capacity

ctor(int,System.Single)

Creates an empty hashtable and sets its default capacity and the load factor.

ctor(Nemerle.Collections.Hashtable`2['a,'b])

Creates a shallow copy of this hashtable

ctor(System.Collections.Generic.IEnumerable`1[[('a,'b], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]))
better_to_string(object)
Clone

Clones this hashtable.

Contains()

Returns `true' if the hashtable contains the specified key.

Remark:

NOTE: this is the same as ContainsKey.

Fold(,Nemerle.Builtins.('a,'b,['c]) -> ['c] )

Folds a function over the key/value pairs.

get_KeyValuePairs
Get()

Returns an optional value associated with the specified key.

GetValue(,Nemerle.Builtins.void -> 'b )

Returns value associated with the specified key or new value. The new value obtain by call getNewValue(). The new value add to collection before return to caller. The getNewValue() called only if key not exists in collection. Example: def map = Hashtable(); Console.WriteLine(map.GetValue("1", () => 1)); // Write "1" Console.WriteLine(map.GetValue("1", () => 2)); // Write "1" Console.WriteLine(map["1"]); // Write "1"

GetValueOrDefault()

Returns value associated with the specified key or default value (null for referece type and result of parameterless constractor for value type).

GetValueOrDefault(,)

Returns value associated with the specified key or defaultValue.

GetValueOrGetDefault(,Nemerle.Builtins.void -> 'b )

Returns value associated with the specified key or result of call getDefaultValue(). The getDefaultValue() called only if key not exists in collection.

Iter(('a,'b) -> void)

Iterates a function over the key/value pairs in the hashtable.

Map(Nemerle.Builtins.('a,'b,[(['c],['d]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral) -> PublicKeyToken=null) )

Maps a given function defined of key-value pairs to the contents of this hashtable. A new hashtable object is created, containing the results of the application.

Remove()
Set(,)

This is different from add, which can fail if the key is already in the underlying Framework hashtable.

ToString
TryGetValue()
Properties:
KeyValuePairs

Returns a collection of the key/value pairs from this hashtable

class public Hashtable`2['a,'b]
Methods:
.ctor
Clone
Contains
Fold
get_KeyValuePairs
Get
GetValue
GetValueOrDefault
GetValueOrGetDefault
Iter
Map
Remove
Set
ToString
TryGetValue
Properties:
KeyValuePairs
class Heap

General usage heap, can be used as priority queue.

Methods:
ctor('a[])

Creates new heap that will initialy contain elements from array a. All the elements are copied into the heap, so later modifications of a do not influence the heap. This operation takes time O(n), where n is the number of elements in array a.

ctor(System.Collections.Generic.IEnumerable`1['a])

Creates new heap initially filled with elements from given collection

ctor(int)

Creates a new empty heap with given initial capacity.

Private constructor, do not use from outside this class.

Add()
build_heap

Builds the heap from elements stored in the m_heap array. This is done in time O (m_heap.Length).

Clear

Count is set to 0, and references to other objects from elements of the collection are also released.

Remark:

Capacity remains unchanged.

Contains()

Checks if given value is contained in heap. This is O(n) operation in worst case.

CopyTo('a[],int)

Copies elements from heap to given array, starting at specified index in target array

ExtractFirst

Returns the first (with maximal priority) element from the heap, removing it. Throws EmptyHeap exception.

Fold(Nemerle.Builtins.(['b],'a) -> ['b] ,)

Folds this heap's elements using the specified function and an initial value.

get_Capacity
get_Count
get_CurrentCapacity
get_IsEmpty
get_IsReadOnly
grow

Grows the table that is used to store heap elements multiplying size by 2.

GetEnumerator
heapify(int)

Repairs the heap structure starting from element at index i, moving down. For explanations see Cormen, Leiserson, Rivest "Introduction to algorithms".

is_greater(int,int)

Checks if the element at index k is greater than the element at index l.

Insert()

Inserts a new element into the heap.

Iter(('a) -> void)

Calls the specified function for all elements of this heap.

left(int)

Calculates the index of the left child of element at index i.

Map(Nemerle.Builtins.('a) -> ['b] )

Creates new heap of elements of type 'b. New heap is totally independent, i.e. any changes in original heap do not influence the second one and vice versa.

parent(int)

Calculates the index of the parent of element at index i.

right(int)

Calculates the index of the right child of element at index i.

Remove()
Top

Returns the first (with maximal priority) element from the heap without removing it. Throws EmptyHeap exception.

Properties:
Capacity

Returns the number of elements that this heap can store without the need to grow.

Count

Returns number of elements in the heap.

CurrentCapacity

Returns the number of elements that this heap can store without the need to grow.

IsEmpty

Checks if the heap is empty.

IsReadOnly

Returns false.

Fields:
m_elements_count

The number of the elements that are in the heap right now

m_heap

An array that stores the heap, elements are stored in heap[1]..heap[count]

class public Heap`1['a]
Methods:
.ctor
Add
Clear
Contains
CopyTo
ExtractFirst
Fold
get_Capacity
get_Count
get_CurrentCapacity
get_IsEmpty
get_IsReadOnly
GetEnumerator
Insert
Iter
Map
Top
Properties:
Capacity
Count
CurrentCapacity
IsEmpty
IsReadOnly
Types:
nested public class _N_Enumerator12708['a]
Methods:
.ctor
Dispose
get_Current
MoveNext
Reset
Properties:
Current
class ICollection

The collection interface.

Methods:
Clone

Creates a shallow copy of this collection.

Exists(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Checks if there exists a member of collection that satisfies the supplied condition.

Filter(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

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(Nemerle.Builtins.('a,['b]) -> ['b] ,)

Folds the collection using the specified fold function and an initial value. Order in which the elements are folded is unspecified.

ForAll(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Checks if all the members of this collection satisfy the supplied predicate.

get_IsEmpty
Iter(('a) -> void)

Calls the supplied function for all the elements of this collection.

Map(Nemerle.Builtins.('a) -> ['b] )

Maps the supplied function to the elements of this collection, creating a new collection.

Partition(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Partitions collection into two collections: elements that satisfy and elements that do not satisfy the supplied predicate.

Properties:
IsEmpty

Returns `true' if the collection is empty.

abstract public interface class ICollection`1['a]
Methods:
Clone
Exists
Filter
First
Fold
ForAll
get_IsEmpty
Iter
Map
Partition
Properties:
IsEmpty
class ICovariantEnumerable
Methods:
GetEnumerator
abstract public interface class ICovariantEnumerable`1[T]
Methods:
GetEnumerator
class ICovariantEnumerator
Methods:
get_Current
MoveNext
Reset
Properties:
Current
abstract public interface class ICovariantEnumerator`1[T]
Methods:
get_Current
MoveNext
Reset
Properties:
Current
class ICovariantList
Methods:
get_CovariantTail
get_Head
get_IsEmpty
Properties:
CovariantTail
Head
IsEmpty
abstract public interface class ICovariantList`1[T]
Methods:
get_CovariantTail
get_Head
get_IsEmpty
Properties:
CovariantTail
Head
IsEmpty
class IDictionary

Dictionary interface. See System.Collections.IDictionary for reference.

Methods:
Add(,)

Adds a key/value pair to the dictionary.

Clear

Clears the contents of the dictionary.

Contains()

Checks if the dictionary contains a given key.

get_Item()
get_Keys
get_KeyValuePairs
get_Values
Get()

Returns an optional value associated with the specified key. This is the safe version of the default indexer property.

GetEnumerator

Returns an enumerator for this dictionary.

Remove()

Removes the given key from this dictionary.

set_Item(,)
Properties:
Item

Provides access to the dictionary.

Keys

Returns a collection of the dictionary's keys.

KeyValuePairs

Returns a collection of the dictionary's key/value pairs.

Values

Returns a collection of the dictionary's values.

abstract public interface class IDictionary`2['a,'b]
Methods:
Add
Clear
Contains
get_Item
get_Keys
get_KeyValuePairs
get_Values
Get
GetEnumerator
Remove
set_Item
Properties:
Item
Keys
KeyValuePairs
Values
class IDictionaryEnumerator

Dictionary enumerator interface.

Methods:
get_Entry
get_Key
get_Value
Properties:
Entry

Returns the dictionary entry currently pointed at by the enumerator.

Key

Returns the key pointed at by the enumerator.

Value

Returns the value pointed at by the enumerator.

abstract public interface class IDictionaryEnumerator`2['a,'b]
Methods:
get_Entry
get_Key
get_Value
Properties:
Entry
Key
Value
class IEnumerable

OBSOLETE

Remark:

Enumerable interface.

abstract public interface class IEnumerable`1
class IEnumerator

OBSOLETE

Remark:

Enumerator interface.

abstract public interface class IEnumerator`1
class IMap

Interface dedicated to be the only way to interact with Map object.

Remark:

FIXME: why this isn't IDictionary?

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(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

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(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

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(,Nemerle.Builtins.('a,'b,['c]) -> ['c] )

Method goes through each of THIS IMap pair and counts cumulative value of function FUNC with intial value INI

ForAll(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Method returns true if and only if for every pair (X,Y) of THIS IMap ('a,'b) FUNC(X,Y) is true

get_Count
get_IsEmpty
get_Size
Get()

Returns the value associated with a key.

Iter(('a,'b) -> void)

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(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

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)

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

abstract public interface class IMap`2['a,'b]
Methods:
Add
Clear
Copy
Exists
Filter
Find
First
Fold
ForAll
get_Count
get_IsEmpty
get_Size
Get
Iter
Member
Partition
Remove
Replace
Properties:
Count
IsEmpty
Size
class LinkedList

Doubly linked mutable list.

Remark:

Insert and Remove operations on this list require constant time irrespective of whether it is a single item or another LinkedList object, that is added.

Methods:
ctor(Nemerle.Core.list`1['a])

Constructor initiliasing object with contents of a Nemerle list.

Add()

Adds item at the beginning of the list.

Append()

Append item to the list.

Append(Nemerle.Collections.LinkedList`1['a])

Append another list to an end. The source list will be cleared.

concat_helper(string,System.Text.StringBuilder)
Clone

Returns shallow copy of the list.

Equals(Nemerle.Collections.LinkedList`1['a])

Compares two lists item by item using Equals method of contained objects.

Equals(object)

Compares two lists item by item using Equals method of contained objects.

Exists(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Checks if there exists a member of list that satisfies the supplied condition.

Filter(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Filters the list removing all elements that do not satisfy the supplied predicate.

First

Returns first element of the list as an option.

Fold(Nemerle.Builtins.('a,['b]) -> ['b] ,)

Folds the list using the specified fold function and an initial value. Elements are folded in order of appearance.

ForAll(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Checks if all the members of this list satisfy the supplied predicate.

get_IsEmpty
Iter(('a) -> void)

Calls the supplied function for all the elements of the list.

Map(Nemerle.Builtins.('a) -> ['b] )

Creates new list with elements from the original with supplied function applied.

Partition(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Partitions list into two lists: elements that satisfy and elements that do not satisfy the supplied predicate.

Prepend()

Adds item at the beginning of the list.

Prepend(Nemerle.Collections.LinkedList`1['a])

Add given list at the beginning. The source will be cleared.

Remove()

Remove all occurences of item from list

Reverse

Reverses elements of the list. Complexity is O(n).

ToString(string)

Returns string representing contents of the list.

Constructs string out of list contents using given argument as a separator.

Parameter: separator:

String to use a separator - it will be put between each two items of the list.

Properties:
IsEmpty

Returns true, if the list is empty.

class public LinkedList`1['a]
Methods:
.ctor
Add
Append
Clone
Equals
Exists
Filter
First
Fold
ForAll
get_IsEmpty
Iter
Map
Partition
Prepend
Remove
Reverse
ToString
Properties:
IsEmpty
sealed abstract class public List
Methods:
_N_extend11623(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
_N_extend11724(Nemerle.Collections.List+_N_closure11711`1[['a]],,Nemerle.Core.list`1[[Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]],Nemerle.Core.list`1[[Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
_N_push11716(,Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]],Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]],Nemerle.Core.list`1[[Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
_N_walk11446(Nemerle.Collections.List+_N_closure11438`1[['a]],Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]])
Append(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]])

Returns list made from appending list y at end of list x. Original list are not modified. Works in time and memory O(length(x)).

Assoc(Nemerle.Core.list`1[[(['a],['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]),)
Combineb(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]])
Compare(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]])

Compare two lists lexicographically over the order defined on their elements. Returns [-1] if [l1] is smaller, [1] if [l2] is smaller, and [0] if they equal.

Compare(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],['a],[int, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Compare two lists lexicographically over the order defined on their elements with function [cmp]. Returns [-1] if [l1] is smaller, [1] if [l2] is smaller, and [0] if they equal.

Concat(Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])

Makes list one level more flat, i.e. Concat([[1;2];[3;4]]) = [1;2;3;4]. Does not work deeper, i.e. Concat([[[1;2];[3]];[[4]]]) = [[1;2];[3];[4]].

Contains(Nemerle.Core.list`1[['a]],)

List membership test, using the `Equals' method to compare objects.

Remark:

This is an alias for the `Member' method.

ContainsRef(Nemerle.Core.list`1[['a]],)

List membership test, using the reference equality.

Remark:

Returns true if and only if list [Collection] contains object with reference equal to [Obj] object

Copy(Nemerle.Core.list`1[['a]])
DivideLast(Nemerle.Core.list`1[['a]])

Returns a list without its last element and the list's last element

Equals(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]])

Tests equality of two lists. Uses Equal method of objects to test wether they are the same.

Exists(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Returns 'true' if at least one of the 'l' list's elements satisfies the condition 'f'.

Remark:

Example of use:

List.Exists (["a", "b", "abc", "d", "e"], fun (x) { x.Length > 2 })

evaluates to 'true' as there is one string of length 3 on the list.

Exists2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],Nemerle.Builtins.(['a],['b],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Filter(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Removes elements for which predicate is false

FilteredLength(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Returns the number of elements for which a predicate is true.

Find(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Finds the first elements for which a predicate is true.

FindAll(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

This is an alias for ``Filter''

Flatten(Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])

Alias for Concat(l).

FoldLeft(Nemerle.Core.list`1[['a]],,Nemerle.Builtins.(['a],['b]) -> ['b] )
FoldLeft2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],,Nemerle.Builtins.(['a],['b],['c]) -> ['c] )
FoldRight(Nemerle.Core.list`1[['a]],,Nemerle.Builtins.(['a],['b]) -> ['b] )
FoldRight2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],,Nemerle.Builtins.(['a],['b],['c]) -> ['c] )
ForAll(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Returns 'true' if all of the 'l' list's elements satisfy the condition 'f'.

Remark:

Example of use:

List.ForAll ([2, 4, 6, 8], fun (x) { x % 2 == 0 })

evaluates to 'true' as all the list's elements are even.

ForAll2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],Nemerle.Builtins.(['a],['b],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
FromArray('a[])

Converts an array into a list.

Group(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],['a],[int, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Groups equal element into lists

Hd(Nemerle.Core.list`1[['a]])

Alias for Head(l).

Head(Nemerle.Core.list`1[['a]])

Returns head (first element) of list. Given empty list throws System.ArgumentException.

IsEmpty(Nemerle.Core.list`1[['a]])

Returns true if the given list is empty.

Iter(Nemerle.Core.list`1[['a]],(['a]) -> void)
Iter2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],(['a],['b]) -> void)
Last(Nemerle.Core.list`1[['a]])

Returns last element of list. Given empty list throws InvalidArgument exception. Works in time O(n) and memory O(1).

Length(Nemerle.Core.list`1[['a]])

Returns length of given list. Time O(n), Mem O(1).

Map(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a]) -> ['b] )
Map2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],Nemerle.Builtins.(['a],['b]) -> ['c] )
MapFromArray('a[],Nemerle.Builtins.(['a]) -> ['b] )
MemAssoc(Nemerle.Core.list`1[[(['a],['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]),)
Member(Nemerle.Core.list`1[['a]],)

List membership test, using the `Equals' method to compare objects.

MergeSort(Nemerle.Builtins.(['a],['a],[int, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]) -> Nemerle.Core.list`1[['a] )
Nth(Nemerle.Core.list`1[['a]],int)

Returns n-th element of list, where 0-th is head. Throws InvalidArgument exception when given too short list. Works in time O(n) and memory O(1).

Partition(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Partitions a list into two sublists according to a predicate.

Product(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])

Assumes that [prod] is a product of n - 1 lists, and extends product by adding every possible element of [x] to these lists.

Product(Nemerle.Core.list`1[[Nemerle.Core.list`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])

Returns a product of lists stored in list [list]. Elements of result are lists of the same length = List.Length (list).

Remark:

E.g.: Product ([[1, 2], [3, 4, 5]]) = [[1, 3], [1, 4], [1, 5], [2, 3], [2, 4], [2, 5]]

Product ([[1, 2], [3, 4, 5], []]) = []

Range(System.Char)

Return a list of characters from 'a' to [end], excluding [end].

Range(System.Char,System.Char,int)

Return a list of characters, which values are incremented by [step], beginning with [beg], up/down to [end], excluding [end] itself.

Range(int)

Return a list of integers from 0 to [end], excluding [end].

Range(int,int,int)

Return a list of values incremented by [step], beginning with [beg], up/down to [end], excluding [end] itself.

Remove(Nemerle.Core.list`1[['a]],)

Returns list l without elements equal to x.

RemoveAssoc(Nemerle.Core.list`1[[(['a],['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]),)
RemoveDuplicates(Nemerle.Core.list`1[['a]])

Returns [l] with duplicates removed with respect to Equals method It is assumed that equal elements of [l] are next to each other, or that the list is sorted.

Remark:

Example:

def result = RemoveDuplicates ([1, 2, 2, 3, 4, 4]); // result = [1, 2, 3, 4]

Repeat(,int)

Return list consisting of [count] references to [elem].

Rev(Nemerle.Core.list`1[['a]])

Returns reversed list, i.e. Rev([1;2;3]) = [3;2;1]. Works in time and memory O(n).

RevAppend(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['a]])

Equivalent to Append(Rev(x),y).

RevFilter(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Removes elements for which predicate is false. The resulting list is reversed (operation is faster this way).

RevMap(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a]) -> ['b] )
RevMap2(Nemerle.Core.list`1[['a]],Nemerle.Core.list`1[['b]],Nemerle.Builtins.(['a],['b]) -> ['c] )
Singletons(Nemerle.Core.list`1[['a]])
SizeSubsets(Nemerle.Core.list`1[['a]],int)

Return list of all possible [n]-element subsets of set [list].

Sort(Nemerle.Core.list`1[['a]],Nemerle.Builtins.(['a],['a],[int, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Split(Nemerle.Core.list`1[[(['a],['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]))
SubsetsPartitions(Nemerle.Core.list`1[['a]],int)

Return a list of all possible partitions of [set] into [count] subsets.

Tail(Nemerle.Core.list`1[['a]])

Returns tail (all elements except first one) of list.

Tl(Nemerle.Core.list`1[['a]])

Alias for Tail(l).

ToList(System.Collections.Generic.IEnumerable`1[['a]])
ToList(System.Collections.Generic.IEnumerable`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
ToListRev(System.Collections.Generic.IEnumerable`1[['a]])
ToListRev(System.Collections.Generic.IEnumerable`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Types:
sealed nested public class _N__N_l10115_10124`1['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l10725_10735`1['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l10824_10831`1['a]
Methods:
.ctor
apply
sealed nested public class _N_closure10519`1
sealed nested public class _N_closure10792`1
sealed nested public class _N_cmp_9947`1['a]
Methods:
.ctor
apply
sealed nested public class _N_static_proxy10745`1['a]
Methods:
apply
Fields:
single_instance
class ListEnumerator

An enumerator for lists.

Methods:
ctor(Nemerle.Core.list`1['a])
_N_doMove11932(Nemerle.Collections.ListEnumerator`1+_N_closure11924['a])
Dispose
get_Current
MoveNext
Reset
Properties:
Current
Fields:
m_current
m_list
m_rest
m_state
class public ListEnumerator`1['a]
Methods:
.ctor
get_Current
MoveNext
Reset
Properties:
Current
Types:
sealed nested public class _N_closure11005
sealed class ListEnumState

The state of a list enumerator.

Fields:
AfterLast
BeforeFirst
Correct
value__
class Map
Methods:
ctor(int,Nemerle.Collections.Tree+Node`1[[Nemerle.Collections.NodeNem`2['a,'b], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
Add(,)
Clear
Contains()
Copy
Exists(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Filter(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Find()
First
Fold(,Nemerle.Builtins.('a,'b,['d]) -> ['d] )
ForAll(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
get_Count
get_IsEmpty
get_Size
Get()
GetEnumerator
Iter(('a,'b) -> void)
Member()
Partition(Nemerle.Builtins.('a,'b,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Remove()
Replace(,)
ToString
Properties:
Count
IsEmpty
Size
Fields:
root
size
class public Map`2['a,'b]
Methods:
.ctor
Add
Clear
Contains
Copy
Exists
Filter
Find
First
Fold
ForAll
get_Count
get_IsEmpty
get_Size
Get
GetEnumerator
Iter
Member
Partition
Remove
Replace
ToString
Properties:
Count
IsEmpty
Size
Types:
sealed nested public class _N__N_l12274_12285['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_closure12369`1
sealed nested public class _N_closure12398
sealed nested public class _N_closure12425
sealed nested public class _N_closure12451
sealed nested public class _N_closure12479
sealed nested public class _N_closure12512
nested public class _N_Enumerator12218['a,'b]
Methods:
.ctor
Dispose
get_Current
MoveNext
Reset
Properties:
Current
sealed nested public class _N_wrap_12378`1['a,'b,'d]
Methods:
.ctor
apply
sealed nested public class _N_wrap_12407['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_wrap_12433['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_wrap_12459['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_wrap_12487['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_wrap_12520['a,'b]
Methods:
.ctor
apply
class NemerleMap

OBSOLETE

Remark:

just an alias for older API compatibility

abstract public interface class NemerleMap`2
class NodeNem
Methods:
ctor(,)
ctor()
CompareTo(Nemerle.Collections.NodeNem`2['a,'b])
Fields:
key
val
sealed class NodeNem`2['a,'b]
Methods:
.ctor
CompareTo
Fields:
key
val
class Pair

An auxillary data-structure for RList used instead of a regular tuple (which is a struct) for performance reasons.

Methods:
ctor(,)

An auxillary data-structure for RList used instead of a regular tuple (which is a struct) for performance reasons.

Equals(Nemerle.Collections.Pair`1['a])
Equals(object)
GetEnumerator
ToString
Fields:
fst
snd
class public Pair`1['a]
Methods:
.ctor
Equals
GetEnumerator
ToString
Fields:
fst
snd
Types:
nested public class _N_Enumerator13831['a]
Methods:
.ctor
Dispose
get_Current
MoveNext
Reset
Properties:
Current
class Queue

Class representing first-in-first-out queue.

Methods:
ctor(int)

Create a new empty queue.

ctor(System.Collections.Generic.IEnumerable`1['a])
Add()

Alias for Enqueue.

concat_helper(string,System.Text.StringBuilder)
Clone

Create a shallow copy of the queue.

Exists(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Return true iff the queue contains an element that satisfies predicate f.

Filter(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Remove from queue every element that does not satisfy predicate f.

First

Return some element from the queue, implements ICollection.First.

Fold(Nemerle.Builtins.('a,['b]) -> ['b] ,)

Fold elements of the queue with supplied function and initial value.

ForAll(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Return `true' iff every element of the queue satisfy predicate f.

get_IsEmpty
get_Length
Iter(('a) -> void)

Call supplied function for every element of the queue.

Map(Nemerle.Builtins.('a) -> ['b] )

Map queue to a new queue using mapping f.

Partition(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Partition the queue into two queues: first with elements that satisfy predicate f, second with the rest.

Pop

Alias for Take.

Push()

Alias for Enqueue.

Take

Return the first element of the queue and remove it.

Top

Alias for Peek.

ToString(string)

Returns string representing contents of the queue.

Constructs string out of queue contents using given argument as a separator.

Parameter: separator:

String to use a separator - it will be put between each two items of the list.

Transfer(Nemerle.Collections.Queue`1['a])

Transfer all elements of the queue q to the end of this queue.

Properties:
IsEmpty

Return `true` iff the queue is empty.

Length

Alias for Count.

class public Queue`1['a]
Methods:
.ctor
Add
Clone
Exists
Filter
First
Fold
ForAll
get_IsEmpty
get_Length
Iter
Map
Partition
Pop
Push
Take
Top
ToString
Transfer
Properties:
IsEmpty
Length
class RList

RList is short for Random Access List. It is a purely functional data-structure. This implementation is based on the SML sources found in Chris Okasaki's "Purely Functional Data Structures" (Cambridge University Press, 1999).

Methods:
ctor
cctor

RList is short for Random Access List. It is a purely functional data-structure. This implementation is based on the SML sources found in Chris Okasaki's "Purely Functional Data Structures" (Cambridge University Press, 1999).

_FromList(Nemerle.Core.list`1[['b]],int,Nemerle.Builtins.([Nemerle.Core.list`1[['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null],[('a,[Nemerle.Core.list`1[['b]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral) -> PublicKeyToken=null) )
_Length(Nemerle.Collections.RList`1['a],int,int)
_N_GetVariantCode

RList is short for Random Access List. It is a purely functional data-structure. This implementation is based on the SML sources found in Chris Okasaki's "Purely Functional Data Structures" (Cambridge University Press, 1999).

_Update(Nemerle.Builtins.('a,'a],int) -> Nemerle.Collections.RList`1['a )
Append(Nemerle.Collections.RList`1['a])

Returns an a new RList composed by appending [ys] at the end of [this]. Time complexity: roughly O (|this| * log (|this| + |ys|)).

Return:

An RListcomposed by appending [ys] at the end of [this].

Parameter: ys:

The RList, which elements come second in the resulting RList.

Append(Nemerle.Collections.RList`1['a],Nemerle.Collections.RList`1['a])

Returns an a new RList composed by appending [ys] at the end of [xs]. Time complexity: roughly O (|xs| * log (|ys| + |xs|)).

Return:

An RList composed by appending [ys] at the end of [xs].

Parameter: xs:

The RList, which elements come first in the resulting RList.

ys:

The RList, which elements come second in the resulting RList.

Cons()

Returns a new RList composed by adding [x], to the head of the RList [this]. Time complexity: O (log (|this|)).

Return:

A new RList composed of [x] as the new head and [this] as the new tail.

Parameter: x:

The element being added to the head of [this].

Cons(,Nemerle.Collections.RList`1['a])

Returns a new RList composed by adding [x], to the head of the RList [xs]. Time complexity: O (log (|xs|)).

Return:

A new RList composed of [x] as the new head and [xs] as the new tail.

Parameter: x:

The element being added to the head of [xs].

xs:

The RList, to which head [x] is being added.

Contains()

Returns true if the element [elem] exists on the RList [this]. Time complexity: O (|this|). An alias for Member.

Return:

Returns true if for any element on the RList [this], element.Equals ([elem]), otherwise returns false.

Parameter: elem:

The element, which existence on the RList [this] is being tested.

Contains(Nemerle.Collections.RList`1['a],)

Returns true if the element [elem] exists on the RList [xs]. Time complexity: O (|xs|). An alias for Member.

Return:

Returns true if for any element on the RList [xs], element.Equals ([elem]), otherwise returns false.

Parameter: xs:

The RList containing the tested elements.

elem:

The element, which existence on the RList [xs] is being tested.

Equals(Nemerle.Collections.RList`1['a])

Checks, whether [this] and [ys] are equal RLists, by cheking if their respective elements are equal. Time complexity: O (min (|this|, |ys|)).

Return:

true if [this] and [ys] are equal, false otherwise.

Parameter: ys:

The RList [this] is compared to.

Equals(Nemerle.Collections.RList`1['a],Nemerle.Collections.RList`1['a])

Checks, whether two RLists are equal, by cheking if their respective elements are equal. Time complexity: O (min (|xs|, |ys|)).

Return:

true if [xs] and [ys] are equal, false otherwise.

Parameter: xs:

The first compared RList.

ys:

The second compared RList.

Equals(object)

Checks, whether [this] and [ys] are equal RLists, by cheking if their respective elements are equal. Time complexity: O (min (|this|, |ys|)).

Return:

true if [this] and [ys] are equal, false otherwise.

Parameter: ys:

The RList [this] is compared to.

Exists(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Returns true if there exists an element on [this], that satisfies the predicate [f] (that is f (elem) == true). Time complexity: O (|xs|).

Return:

Returns true if for any element on the RList [this], applying [f] to that element returns true, otherwise returns false.

Parameter: f:

The predicate used during the tests.

Exists(Nemerle.Collections.RList`1['a],Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Returns true if there exists an element on [xs], that satisfies the predicate [f] (that is f (elem) == true). Time complexity: O (|xs|).

Return:

Returns true if for any element on the RList [xs], applying [f] to that element returns true, otherwise returns false.

Parameter: xs:

The RList containing the tested elements.

f:

The predicate used during the tests.

FoldLeft(,Nemerle.Builtins.('a,['b]) -> ['b] )

Iterates over the RList [this] from left to right, composing the return value, by applying [f], to each of [this]' elements and the current [acc]. Time complexity: O (|this|).

Return:

Acc in it's final state at the last step of recursion

Parameter: acc:

The accumulator being updated on each level of recursion, to finally become the return value of FoldLeft. The supplied value will be used by [f] in the first step.

f:

The function being applied to ([RList-elem], [acc]) in each step.

FoldLeft(Nemerle.Collections.RList`1['a],,Nemerle.Builtins.('a,['b]) -> ['b] )

Iterates over the RList [xs] from left to right, composing the return value, by applying [f], to each of [xs]'s elements and the current [acc]. Time complexity: O (|xs|).

Return:

Acc in it's final state at the last step of recursion

Parameter: xs:

The RList over which FoldLeft is going to iterate.

acc:

The accumulator being updated on each level of recursion, to finally become the return value of FoldLeft. The supplied value will be used by [f] in the first step.

f:

The function being applied to ([RList-elem], [acc]) in each step.

FoldRight(,Nemerle.Builtins.('a,['b]) -> ['b] )

Iterates over the RList [this] from right to left, composing the return value, by applying [f], to each of [this]' elements and the current [acc]. Time complexity: O (|this|).

Return:

The result of applying [f] to each element of [xs] and the current [acc].

Parameter: acc:

The accumulator updated on each level of recursion and used by [f]. The supplied value will be used by [f] in the last step.

f:

The function being applied to ([RList-elem], [acc]) in each step.

FoldRight(Nemerle.Collections.RList`1['a],,Nemerle.Builtins.('a,['b]) -> ['b] )

Iterates over the RList [xs] from right to left, composing the return value, by applying [f], to each of [xs]'s elements and the current [acc]. Time complexity: O (|xs|).

Return:

The result of applying [f] to each element of [xs] and the current [acc].

Parameter: xs:

The RList over which FoldRight is going to iterate.

acc:

The accumulator updated on each level of recursion and used by [f]. The supplied value will be used by [f] in the last step.

f:

The function being applied to ([RList-elem], [acc]) in each step.

FromList(Nemerle.Core.list`1['a])

Returns an RList composed of the elements of list [xs]. Use RList (xs, |xs|) if |xs| is known. Time complexity: O (|xs|).

Return:

An RList composed of the elements of [xs].

Parameter: xs:

The list used when composing the return value.

FromList(Nemerle.Core.list`1['a],int)

Returns an RList composed of the elements of list [xs], of length [i]. Time complexity: O (|xs|).

Return:

An RList composed of the elements of [xs].

Parameter: xs:

The list used when composing the return value.

i:

The length of [xs] and therefore of the return value as well.

get_Item(int)
get_Length
GetEnumerator
Hd(Nemerle.Collections.RList`1['a])

Returns the head of the RList [xs]. Time complexity: O (log (|xs|)). An alias for Head.

Returns the head of the RList [this]. Time complexity: O (log (|this|)). An alias for Head.

Return:

The head of [xs].

The head of [this].

Parameter: xs:

The RList, which head is going to be returned.

Head(Nemerle.Collections.RList`1['a])

Returns the head of the RList [xs]. Time complexity: O (log (|xs|)).

Returns the head of the RList [this]. Time complexity: O (log (|this|)).

Return:

The head of [xs].

The head of [this].

Parameter: xs:

The RList, which head is going to be returned.

IsEmpty(Nemerle.Collections.RList`1['a])

Checks, whether the RList [xs] is empty. Time complexity: O (1).

Checks, whether [this] is an empty RList. Time complexity: O (1).

Return:

true if the [xs] is empty, false otherwise.

true if [this] is an empty RList, false otherwise.

Parameter: xs:

The list to check for emptiness.

Iter(('a) -> void)

Iterates over [this] applying [f] to each of its elements. Time complexity: O (|this|).

Parameter: f:

The function being applied to every [this] element during iteration.

Iter(Nemerle.Collections.RList`1['a],('a) -> void)

Iterates over [xs] applying [f] to each of its elements. Time complexity: O (|xs|).

Parameter: xs:

The RList on which [f] is iterated.

f:

The function being applied to every [xs] element during iteration.

Last(Nemerle.Collections.RList`1['a])

Returns the last element of the RList [xs]. Time complexity: O (log (|xs|)).

Returns the last element of the RList [this]. Time complexity: O (log (|this|)).

Return:

The last element of [xs].

The last element of [this].

Parameter: xs:

The RList, which last element is going to be returned.

Map(Nemerle.Builtins.('a) -> ['b] )

Returns a new RList composed from [this] by applying [f] to every element on that RList. Time complexity: O (|this|).

Return:

A new RList composed from [this] by applying [f] to every element on that RList.

Parameter: f:

The function being applied to every [this] element. The values it returns will make up the new RList returned by Map.

Map(Nemerle.Collections.RList`1['a],Nemerle.Builtins.('a) -> ['b] )

Returns a new RList composed from [xs] by applying [f] to every element on that RList. Time complexity: O (|xs|).

Return:

A new RList composed from [xs] by applying [f] to every element on that RList.

Parameter: xs:

The source RList from which the return RList is composed by applying [f] to each of its elements.

f:

The function being applied to every [xs] element. The values it returns will make up the new RList returned by Map.

Member()

Returns true if the element [elem] exists on the RList [this]. Time complexity: O (|this|).

Return:

Returns true if for any element on the RList [this], element.Equals ([elem]), otherwise returns false.

Parameter: elem:

The element, which existence on the RList [this] is being tested.

Member(Nemerle.Collections.RList`1['a],)

Returns true if the element [elem] exists on the RList [xs]. Time complexity: O (|xs|).

Return:

Returns true if for any element on the RList [xs], element.Equals ([elem]), otherwise returns false.

Parameter: xs:

The RList containing the tested elements.

elem:

The element, which existence on the RList [xs] is being tested.

Nth(Nemerle.Collections.RList`1['a],int)

Returns the [i]-th element of the RList [xs]. Time complexity: O (log (|xs|)).

Return:

The [i]-th element of [xs].

Parameter: xs:

The RList, which [i]-th element is going to be returned.

i:

The index under which the return element is located in [xs].

Nth(int)

Returns the [i]-th element of the RList [this]. Time complexity: O (log (|this|)).

Return:

The [i]-th element of [this].

Parameter: i:

The index under which the return element is located in [this].

op_Addition(Nemerle.Collections.RList`1['a],Nemerle.Collections.RList`1['a])

Returns an a new RList composed by appending [ys] at the end of [xs]. Time complexity: roughly O (|xs| * log (|ys| + |xs|)). An alias for Append.

Return:

An RList composed by appending [ys] at the end of [xs].

Parameter: xs:

The RList, which elements come first in the resulting RList.

ys:

The RList, which elements come second in the resulting RList.

Rev(Nemerle.Collections.RList`1['a])

Returns an RList composed by reversing [xs]. Time complexity: O (|xs| * log (|xs|)).

Returns an RList composed by reversing [this]. Time complexity: O (|this| * log (|this|)).

Return:

An RList composed by reversing [xs].

An RList composed by reversing [this].

Parameter: xs:

The RList used when composing the return value.

Tail(Nemerle.Collections.RList`1['a])

Returns the tail of the RList [xs]. Time complexity: O (log (|xs|)).

Returns the tail of the RList [this]. Time complexity: O (log (|this|)).

Return:

The tail of [xs].

The tail of [this].

Parameter: xs:

The RList, which tail is going to be returned.

Tl(Nemerle.Collections.RList`1['a])

Returns the tail of the RList [xs]. Time complexity: O (log (|xs|)). An alias for Tail.

Returns the tail of the RList [this]. Time complexity: O (log (|this|)). An alias fot Tail.

Return:

The tail of [xs].

The tail of [this].

Parameter: xs:

The RList, which tail is going to be returned.

ToList(Nemerle.Collections.RList`1['a])

Returns a list of elements of the RList [xs] in the same order. Time complexity: O (|xs|).

Returns a list of elements of the RList [this] in the same order. Time complexity: O (|this|).

Return:

A list of elements of the RList [xs] in the same order.

A list of elements of the RList [this] in the same order.

Parameter: xs:

The RList used when composing the return value.

ToString(Nemerle.Collections.RList`1['a])

Returns a string representation of the RList [xs]. Time complexity: O (|xs|).

Returns a string representation of the RList [this]. Time complexity: O (|this|).

Return:

A string representation of the RList [xs].

A string representation of the RList [this].

Parameter: xs:

The RList used when composing the return value.

UnCons(Nemerle.Collections.RList`1['a])

Separates and returns the head and tail of the RList [xs]. Time complexity: O (log (|xs|)).

Separates and returns the head and tail of the RList [this]. Time complexity: O (log (|this|)).

Return:

The head and tail of [xs].

The head and tail of [this].

Parameter: xs:

The RList, which tail is going to be returned along with the separated head.

Update(int,)

Returns a new RList composed by substituting the [i]-th element of the RList [this], with [x]. Time complexity: O (log (|this|)).

Return:

A new RList composed by substituting the [i]-th element of the RList [this], with [x].

Parameter: i:

The index under which the element to be substituted resides in [this].

Update(int,,Nemerle.Collections.RList`1['a])

Returns a new RList composed by substituting the [i]-th element of the RList [xs], with [x]. Time complexity: O (log (|xs|)).

Return:

A new RList composed by substituting the [i]-th element of the RList [xs], with [x].

Parameter: xs:

The RList used in composing the return value.

i:

The index under which the element to be substituted resides in [xs].

Properties:
Item
Length

Returns the length of the RList [this]. Time complexity: O (log (|this|)).

Return:

The length of [this].

Fields:
Empty

Returns an empty RList. Time complexity: O (1).

Return:

An empty RList.

Types:
class Nil
Methods:
ctor
cctor
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
class One
Methods:
ctor(,Nemerle.Collections.RList`1[[Nemerle.Collections.Pair`1['a], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
_N_GetVariantCode
Fields:
arg1
arg2
class Zero
Methods:
ctor(Nemerle.Collections.RList`1[[Nemerle.Collections.Pair`1['a], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
_N_GetVariantCode
Fields:
arg
abstract class public RList`1['a]
Methods:
.cctor
_N_GetVariantCode
Append
Cons
Contains
Equals
Exists
FoldLeft
FoldRight
FromList
get_Item
get_Length
GetEnumerator
Hd
Head
IsEmpty
Iter
Last
Map
Member
Nth
op_Addition
Rev
Tail
Tl
ToList
ToString
UnCons
Update
Properties:
Item
Length
Fields:
Empty
Types:
sealed nested public class _N__N_l14040_14055['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14150_14165['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14184_14212`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N__N_l14192_14223`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N__N_l14242_14270`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N__N_l14250_14281`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N__N_l14413_14422['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14482_14491['a]
Methods:
.ctor
apply
sealed nested public class _N_closure14009
sealed nested public class _N_closure14047
sealed nested public class _N_closure14119
sealed nested public class _N_closure14157
sealed nested public class _N_closure14200`1
sealed nested public class _N_closure14258`1
sealed nested public class _N_closure14307`1
sealed nested public class _N_closure14343
sealed nested public class _N_closure14447`1
nested public class _N_Enumerator14564['a]
Methods:
.ctor
Dispose
get_Current
MoveNext
Reset
Properties:
Current
sealed nested public class _N_f__14017['a]
Methods:
.ctor
apply
sealed nested public class _N_f__14132['a]
Methods:
.ctor
apply
sealed nested public class _N_f__14315`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_f__14351['a]
Methods:
.ctor
apply_void
sealed nested public class _N_f__14455`1['a,'b]
Methods:
.ctor
apply
sealed nested public class _N_static_proxy14370['a]
Methods:
apply
Fields:
single_instance
sealed nested public class _N_static_proxy14388['a]
Methods:
apply
Fields:
single_instance
sealed nested public class Nil['a]
Methods:
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
sealed nested public class One['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
arg1
arg2
sealed nested public class Zero['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
arg
class Set
Methods:
ctor(System.Collections.Generic.IEnumerable`1['a])
ctor(Nemerle.Collections.Tree+Node`1['a],System.Collections.Generic.IEnumerable`1['a])
ctor(Nemerle.Collections.Tree+Node`1['a])
Add()
Add_Invalid()
AddList(Nemerle.Core.list`1['a])
AddRange(System.Collections.Generic.IEnumerable`1['a])
Clear_Invalid
Contains()
CopyTo('a[],int)
Filter(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )
Fold(,Nemerle.Builtins.('a,['b]) -> ['b] )
FromList(Nemerle.Core.list`1['a])
get_AsArray
get_Count
get_IsEmpty
get_IsReadOnly
get_Item()
GetEnumerator
Intersect(Nemerle.Collections.Set`1['a])
Iter(('a) -> void)
Remove()
Remove_Invalid()
Replace()
ReplaceList(Nemerle.Core.list`1['a])
Singleton()
Subtract(Nemerle.Collections.Set`1['a])
Sum(Nemerle.Collections.Set`1['a])
Sum(Nemerle.Core.list`1[[Nemerle.Collections.Set`1['a], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null]])
ToList
ToString
Xor(Nemerle.Collections.Set`1['a])
Properties:
AsArray
Count
IsEmpty
IsReadOnly
Item
Fields:
root
class public Set`1['a]
Methods:
.ctor
Add
AddList
AddRange
Contains
CopyTo
Filter
Fold
FromList
get_AsArray
get_Count
get_IsEmpty
get_IsReadOnly
get_Item
GetEnumerator
Intersect
Iter
Remove
Replace
ReplaceList
Singleton
Subtract
Sum
ToList
ToString
Xor
Properties:
AsArray
Count
IsEmpty
IsReadOnly
Item
Types:
sealed nested public class _N__N_l14711_14721['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14739_14758['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14769_14787['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14808_14818['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14827_14837['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14846_14864['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14879_14907['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14886_14922['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14936_14946['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14958_14967['a]
Methods:
.ctor
apply
sealed nested public class _N__N_l14996_15017['a]
Methods:
.ctor
apply
sealed nested public class _N_closure14749
sealed nested public class _N_closure14778
sealed nested public class _N_closure14855
sealed nested public class _N_closure14896
sealed nested public class _N_closure15006
class Stack

A stack

Methods:
ctor(int)
ctor(System.Collections.Generic.IEnumerable`1['a])
Add()
concat_helper(string,System.Text.StringBuilder)
Clone

Creates a shallow copy of this stack

Exists(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

See List.Exists.

Filter(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

See List.Filter.

First

Same as Peek, but does not throw an exception -- instead it returns an optional result.

Fold(Nemerle.Builtins.('a,['b]) -> ['b] ,)

See List.FoldLeft.

ForAll(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

See List.ForAll.

get_Height
get_IsEmpty
get_Length
get_Top
Iter(('a) -> void)

See List.Iter.

Map(Nemerle.Builtins.('a) -> ['b] )

See List.Map.

Partition(Nemerle.Builtins.('a,[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

See List.Partition.

RemoveLast
set_Top()
ToString(string)

Returns string representing contents of the queue.

Constructs string out of queue contents using given argument as a separator.

Parameter: separator:

String to use a separator - it will be put between each two items of the list.

Properties:
Height

An alias for `Count'.

IsEmpty

Returns `true' iff the stack is empty.

Length

An alias for `Count'.

Top

When read -- peeks at the object on the top of the stack. When written -- replaces the topmost element with specified value (there has to be one).

class public Stack`1['a]
Methods:
.ctor
Add
Clone
Exists
Filter
First
Fold
ForAll
get_Height
get_IsEmpty
get_Length
get_Top
Iter
Map
Partition
RemoveLast
set_Top
ToString
Properties:
Height
IsEmpty
Length
Top
class SystemMap

OBSOLETE

Remark:

just an alias for older API compatibility

abstract public interface class SystemMap`2
sealed abstract class public Tree

A functional Red-Black Trees implementation

Methods:
_N_delete12629(Nemerle.Collections.Tree+_N_closure12619`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
_N_filter12762(Nemerle.Collections.Tree+_N_closure12754`1[['a]],Nemerle.Collections.Tree+Node`1[['a]],([Nemerle.Collections.Tree+Node`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null],[int, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]))
_N_insert12575(Nemerle.Collections.Tree+_N_closure12565`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
_N_partition12719(Nemerle.Collections.Tree+_N_closure12711`1[['a]],Nemerle.Collections.Tree+Node`1[['a]],([Nemerle.Collections.Tree+Node`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null],[int, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[Nemerle.Collections.Tree+Node`1[['a]], Nemerle.stage1, Version=0.9.3.24, Culture=neutral, PublicKeyToken=null],[int, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]))
BalanceLeft(,Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
BalanceRight(,Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
BalLeft(,Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
BalRight(,Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])

Internal functions used for tree balancing

CountFilter(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Functions returns TREE1 * INT1 where TREE1 is a tree that contains this nodes X of TREE that FUNC(X) is true and INT1 is the size of TREE1

CountPartition(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Function returns TREE1 * INT1 * TREE2 * INT2 where tree TREE1 consists of this nodes X of TREE that FUNC(X) is true and tree TREE2 contains all nodes of TREE that are not in TREE1. INT1 is the size of TREE1 and INT2 is the size of TREE2

Delete(Nemerle.Collections.Tree+Node`1[['a]],)
Delete(Nemerle.Collections.Tree+Node`1[['a]],,bool)

Function returns a passed tree TREE with removed element ELEM. If element was not in the tree exception is thrown.

Exists(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Function returns true if and only if there exists such node X of TREE that FUNC(X) is true

Filter(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Functions returns a tree that contains this nodes X of TREE that FUNC(X) is true

Fold(Nemerle.Collections.Tree+Node`1[['a]],,Nemerle.Builtins.(['a],['b]) -> ['b] )

Function goes through each TREE node and counts cumulative value of function FUNC with intial value INI

ForAll(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Function returns true if and only if for every node X of TREE FUNC(X) is true

Get(Nemerle.Collections.Tree+Node`1[['a]],)

Function finds a node and returns it (if any) as an option ['a]

GetSubst(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Collections.Tree+Node`1[['a]])
Insert(Nemerle.Collections.Tree+Node`1[['a]],,bool)

Function returns a passed tree TREE with inserted element ELEM. If node is already present in tree either throw exception or replace node, depending on REPLACE.

Partition(Nemerle.Collections.Tree+Node`1[['a]],Nemerle.Builtins.(['a],[bool, mscorlib, Version=2.0.0.0, Culture=neutral) -> PublicKeyToken=b77a5c561934e089] )

Function returns TREE1 * TREE2 where tree TREE1 consists of this nodes X of TREE that FUNC(X) is true and tree TREE2 contains all nodes of TREE that are not in TREE1.

Types:
sealed nested public class _N_closure11646`1
sealed nested public class _N_closure11700`1
sealed nested public class _N_closure11792`1
sealed nested public class _N_closure11835`1
class Node
Methods:
ctor
_N_GetVariantCode
get_Count
GetEnumerator
Properties:
Count
Types:
class Black
Methods:
ctor(,Nemerle.Collections.Tree+Node`1['a],Nemerle.Collections.Tree+Node`1['a])
_N_GetVariantCode
Fields:
key
lchild
rchild
class Leaf
Methods:
ctor
cctor
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
class Red
Methods:
ctor(,Nemerle.Collections.Tree+Node`1['a],Nemerle.Collections.Tree+Node`1['a])
_N_GetVariantCode
Fields:
key
lchild
rchild
abstract nested public class Node`1['a]
Methods:
_N_GetVariantCode
get_Count
GetEnumerator
Properties:
Count
Types:
sealed nested public class Black['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
key
lchild
rchild
sealed nested public class Leaf['a]
Methods:
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
sealed nested public class Red['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
key
lchild
rchild
class NodeEnumerator
Methods:
ctor(Nemerle.Collections.Tree+Node`1['a])
_N__N_for_1304013066(Nemerle.Collections.Tree+NodeEnumerator`1+_N_closure13054['a])
ascend
Dispose
enterChild(Nemerle.Collections.Tree+Node`1['a],bool)
get_Current
MoveNext
Reset
Properties:
Current
Fields:
m_current
stack
nested public class NodeEnumerator`1['a]
Methods:
.ctor
Dispose
get_Current
MoveNext
Reset
Properties:
Current
Types:
sealed nested public class _N__N_method_lambda_12163['a]
Methods:
.ctor
apply
sealed nested public class _N_closure12135
sealed nested public class _N_closure12154
class Vector

OBSOLETE

Remark:

Just a little extension of System.Collections.Generic.List

Methods:
ctor(int)
ctor(System.Collections.Generic.IEnumerable`1['a])
get_IsEmpty
Map(Nemerle.Builtins.('a) -> [To] )
RemoveLast
Properties:
IsEmpty
class public Vector`1['a]
Methods:
.ctor
get_IsEmpty
Map
RemoveLast
Properties:
IsEmpty