Nemerle Documentation

list Members

list overview

Public Static Methods

op_Addition  

Public Static Operators

Public Instance Properties

Head Returns head (first element) of list. Given empty list throws System.ArgumentException.
IsEmpty Returns true if the given list is empty.
Last Returns last element of list. Given empty list throws InvalidArgument exception. Works in time O(n) and memory O(1).
Length  
Tail Returns tail (all elements except the first one) of list.

Public Instance Methods

_N_GetVariantCode The core datastructure allowing easy manipulating of small and medium sized collections of elements.
Append 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)).
Contains List membership test, using the `Equals' method to compare objects.
ContainsRef List membership test, using the reference equality.
DivideLast Returns a list without its last element and the list's last element
Equals Overloaded.  
Exists Returns 'true' if at least one of the 'l' list's elements satisfies the condition 'f'.
Filter Removes elements for which predicate is false
FilteredLength Returns the number of elements for which a predicate is true.
Find Finds the first elements for which a predicate is true.
FindAll This is an alias for ``Filter''
FirstN Returns first n elements of the list. Works in time and memory O(n).
FoldLeft  
FoldRight  
ForAll Returns 'true' if all of the 'l' list's elements satisfy the condition 'f'.
GetElementType  
GetEnumerator Creates enumerator for elements of list.
GetHashCode  
GetType (inherited from Object)  
Iter  
Map  
Nth  
Partition Partitions a list into two sublists according to a predicate.
Remove Returns current list without elements equal to x. Equals method is used to compare elements.
RevAppend Equivalent to Reverse().Append(y), but faster.
Reverse Returns reversed list, i.e. [1,2,3].Reverse().Equals ([3,2,1]). Works in time and memory O(n).
RevFilter Removes elements for which predicate is false. The resulting list is reversed (operation is faster this way).
RevMap  
Sort  
ToString Overloaded.  

Protected Instance Constructors

list Constructor Initializes a new instance of the list class.

Protected Instance Methods

Finalize (inherited from Object)  
MemberwiseClone (inherited from Object)  

See Also

list Class | Nemerle.Core Namespace