|
@@ -80,17 +80,6 @@ class Lambda<A,B> {
|
|
return b;
|
|
return b;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- Creates a [List] from a [List] 'l' by applying the function 'f'
|
|
|
|
- on all elements of 'l'.
|
|
|
|
- **/
|
|
|
|
- public static function lmap(l : List<A>,f : A -> B) : List<B> {
|
|
|
|
- var b = new List();
|
|
|
|
- for( x in l )
|
|
|
|
- b.add(f(x));
|
|
|
|
- return b;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
Functional 'fold' using an [Iterator]
|
|
Functional 'fold' using an [Iterator]
|
|
**/
|
|
**/
|