Compare commits

..

No commits in common. "9e90bdfc33b24532719611088a55cf33fb7c4b28" and "7879184d560342283eb5cbe9170e79aa6bfbda95" have entirely different histories.

2 changed files with 6 additions and 4 deletions

View file

@ -1,9 +1,11 @@
fn<T, R> ([T]) map(f: fn(T) -> R) -> [R] { fn (l: list) map(list: [any], f: fn(any) -> any) -> [any] {
out := [] out := []
for v in list.iter() { i := 0
out.append(f(v)) while i < list.length() {
out.append(f(list.at(i)))
i = i + 1
} }
return out return out

View file

@ -1,3 +1,3 @@
build: build:
GOOS=js GOARCH=wasm go build -o anglais.wasm . GOOS=js GOARCH=wasm go build .