Added each to prelude

This commit is contained in:
Robert Bendun 2022-05-25 04:34:37 +02:00
parent 70e1431f05
commit e2142d9dbd

View File

@ -12,4 +12,11 @@ var map = [array fun|
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;