Nemerle Library
Namespace Nemerle.Core
class public AssemblyFindException
Methods:
.ctor
ctor
class public AssertionException

This namespace is always opened

Methods:
.ctor
ctor(System.String,System.Int32,System.String,System.String)
abstract public interface class bool
abstract public interface class byte
abstract public interface class char
abstract public interface class decimal
abstract public interface class double
abstract public interface class float
abstract public interface class int
class list

The core datastructure allowing easy manipulating of small and medium sized collections of elements.

Remark:

It has a builtin syntax [] for empty list, x :: xs for creating list from head element and tail.

Methods:
ctor

The core datastructure allowing easy manipulating of small and medium sized collections of elements.

Remark:

It has a builtin syntax [] for empty list, x :: xs for creating list from head element and tail.

_N_GetVariantCode

The core datastructure allowing easy manipulating of small and medium sized collections of elements.

Remark:

It has a builtin syntax [] for empty list, x :: xs for creating list from head element and tail.

_N_to_string10790(System.Object)
Append(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)).

concat_helper(System.String,System.Text.StringBuilder)
ChopFirstN(System.Int32)

Return [this] without first [n] elements. Works in time O(n) and constant memory. Throws ArgumentException when called on too short list.

Contains()

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

CopyTo('a[])

Copies all elements from current list to specified array beginning with index 0

CopyTo('a[],System.Int32)

Copies first [len] elements from current list to specified array beginning with index 0

DivideLast

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

Equals(Nemerle.Core.list`1['a])
Equals(System.Object)
Exists(Nemerle.Builtins.Function`2['a,[System.Boolean, 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.

Filter(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

Removes elements for which predicate is false

FilteredLength(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

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

Find(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

Finds the first elements for which a predicate is true.

FindAll(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

This is an alias for ``Filter''

FindWithDefault(,Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

Finds the first elements for which a predicate is true.

FirstN(System.Int32)

Returns first n elements of the list. Works in time and memory O(n).

FoldLeft(,Nemerle.Builtins.Function`3['a,['b],['b]])
FoldRight(,Nemerle.Builtins.Function`3['a,['b],['b]])
ForAll(Nemerle.Builtins.Function`2['a,[System.Boolean, 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.

get_AsArray
get_CovariantTail
get_Head
get_IsEmpty
get_Last
get_Length
get_Tail
GetElementType
GetEnumerator

Creates enumerator for elements of list.

GetHashCode
Group(Nemerle.Builtins.Function`3['a,'a,[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])
IsOrdered(Nemerle.Core.list`1[[T]])
IsOrdered(Nemerle.Core.list`1[[T]],Nemerle.Builtins.Function`3[[T],[T],[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])
Iter(Nemerle.Builtins.FunctionVoid`1['a])
IterI(System.Int32,Nemerle.Builtins.FunctionVoid`2[[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],'a])
LastN(System.Int32)
Map(Nemerle.Builtins.Function`2['a,['b]])
MapToArray(Nemerle.Builtins.Function`2['a,['b]])
Nth(System.Int32)
op_Addition(Nemerle.Core.list`1['a],Nemerle.Core.list`1['a])
op_Equality(Nemerle.Core.list`1['a],Nemerle.Core.list`1['a])
op_Inequality(Nemerle.Core.list`1['a],Nemerle.Core.list`1['a])
Partition(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

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.

RemoveDuplicates
Rev

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])

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(Nemerle.Builtins.Function`2['a,[System.Boolean, 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).

RevFilterWhenNeeded(Nemerle.Builtins.Function`2['a,[System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])

Return list, reversed or not, with elements not fulfilling [f] removed. Avoid allocation if possible.

RevMap(Nemerle.Builtins.Function`2['a,['b]])
Sort(Nemerle.Builtins.Function`3['a,'a,[System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])
ToArray
ToString(System.String)
Properties:
AsArray
CovariantTail
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.

Types:
class Cons
Methods:
ctor(,Nemerle.Core.list`1['a])
_N_GetVariantCode
Fields:
hd
tl
class Nil
Methods:
ctor
cctor
_N_constant_object_generator
_N_GetVariantCode
GetRealObject(System.Runtime.Serialization.StreamingContext)
ToString
Fields:
_N_constant_object
abstract class public list`1['a]
Methods:
_N_GetVariantCode
Append
ChopFirstN
Contains
CopyTo
DivideLast
Equals
Exists
Filter
FilteredLength
Find
FindAll
FindWithDefault
FirstN
FoldLeft
FoldRight
ForAll
get_CovariantTail
get_Head
get_IsEmpty
get_Last
get_Length
get_Tail
GetElementType
GetEnumerator
GetHashCode
Group
IsOrdered
Iter
IterI
LastN
Map
MapToArray
Nth
op_Addition
op_Equality
op_Inequality
Partition
Remove
RemoveDuplicates
Rev
RevAppend
Reverse
RevFilter
RevFilterWhenNeeded
RevMap
Sort
ToArray
ToString
Properties:
CovariantTail
Head
IsEmpty
Last
Length
Tail
Types:
sealed nested public class _N__N_l9763_9772`1['a,T]
Methods:
.ctor
apply
sealed nested public class Cons['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
hd
tl
sealed nested public class Nil['a]
Methods:
_N_constant_object_generator
_N_GetVariantCode
GetRealObject
ToString
Fields:
_N_constant_object
abstract public interface class long
class public MatchFailureException
Methods:
.ctor
ctor
class public NullMatchException
Methods:
.ctor
ctor
raise_self
abstract public interface class object
class option

The optional value variant.

Methods:
ctor
_N_GetVariantCode

The optional value variant.

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

Typesafe equality checks.

Equals(System.Object)

Typesafe equality checks.

get_HasValue
get_IsNone
get_IsSome
get_Value
GetHashCode

Structural HashCode provider

ToString

Pretty prints the optional value.

WithDefault()
Properties:
HasValue
IsNone
IsSome
Value
Types:
class None
Methods:
ctor
cctor
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
class Some
Methods:
ctor()
_N_GetVariantCode
Fields:
val
sealed abstract class public Option

Operations on optional values

Methods:
Equals(Nemerle.Core.option`1[['a]],Nemerle.Core.option`1[['a]])

Safe equality check

IsNone(Nemerle.Core.option`1[['a]])

Returns `true' if the optional value is not present.

IsSome(Nemerle.Core.option`1[['a]])

Checks if the optional value is present.

Iter(Nemerle.Core.option`1[['a]],Nemerle.Builtins.FunctionVoid`1[['a]])

Same as ignore (Map (x, f)).

Map(Nemerle.Core.option`1[['a]],Nemerle.Builtins.Function`2[['a],['b]])

Safe optional value mapping.

UnSome(Nemerle.Core.option`1[['a]])

Unwraps an optional value; throws an argument exception if the value is not present.

abstract class public option`1['a]
Methods:
_N_GetVariantCode
Equals
get_HasValue
get_IsNone
get_IsSome
get_Value
GetHashCode
ToString
WithDefault
Properties:
HasValue
IsNone
IsSome
Value
Types:
sealed nested public class None['a]
Methods:
_N_constant_object_generator
_N_GetVariantCode
Fields:
_N_constant_object
sealed nested public class Some['a]
Methods:
.ctor
_N_GetVariantCode
Fields:
val
abstract public interface class sbyte
abstract public interface class short
abstract public interface class string
abstract public interface class uint
abstract public interface class ulong
abstract public interface class ushort