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 := []
for v in list.iter() {
out.append(f(v))
i := 0
while i < list.length() {
out.append(f(list.at(i)))
i = i + 1
}
return out

View file

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