Added each to prelude
This commit is contained in:
parent
70e1431f05
commit
e2142d9dbd
@ -12,4 +12,11 @@ var map = [array fun|
|
|||||||
iter 0 (len array)
|
iter 0 (len array)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var each = [array fun|
|
||||||
|
var iter = [start stop |
|
||||||
|
if (start >= stop) [nil] [fun (array.start); iter (start+1) stop]
|
||||||
|
];
|
||||||
|
iter 0 (len array)
|
||||||
|
];
|
||||||
|
|
||||||
var cdur = c47;
|
var cdur = c47;
|
||||||
|
Loading…
Reference in New Issue
Block a user