mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
7 lines
104 B
Plaintext
7 lines
104 B
Plaintext
import compound;
|
|
var arr: [int] = [1, 2, 3];
|
|
fn f(_, v: int): int { return v + 1; }
|
|
print arr.map(f);
|
|
|
|
|