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

View file

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