Compare commits

..

2 commits

Author SHA1 Message Date
9e90bdfc33
_in theory_
All checks were successful
/ test (push) Successful in 48s
2026-07-15 21:48:10 +02:00
ca76ae5b80
add name to wasm make 2026-07-15 21:47:40 +02:00
2 changed files with 4 additions and 6 deletions

View file

@ -1,11 +1,9 @@
fn (l: list) map(list: [any], f: fn(any) -> any) -> [any] { fn<T, R> ([T]) map(f: fn(T) -> R) -> [R] {
out := [] out := []
i := 0 for v in list.iter() {
while i < list.length() { out.append(f(v))
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 . GOOS=js GOARCH=wasm go build -o anglais.wasm .