mirror of
https://github.com/azur1s/bobbylisp.git
synced 2024-10-16 02:37:40 -05:00
24 lines
484 B
Plaintext
24 lines
484 B
Plaintext
fun iter_ (vec: vec_int) (current: int): void = do
|
|
if current == @len(vec) then
|
|
do end;
|
|
else
|
|
do
|
|
-- iter logic
|
|
-- TODO: function as argument
|
|
@get(vec, current) |> @write(_);
|
|
@write("\n");
|
|
|
|
iter_(vec, current + 1);
|
|
end;
|
|
end;
|
|
end;
|
|
|
|
fun iter (vec: vec_int): void = do
|
|
iter_(vec, 0);
|
|
end;
|
|
|
|
fun main: void = do
|
|
let foo: vec_int = [69, 420, 727, 1337, 42069, 69420];
|
|
iter(foo);
|
|
end;
|