This commit is contained in:
NikolajDanger
2022-05-15 12:54:29 +02:00
parent 383332077b
commit ba22cff91f
222 changed files with 23320 additions and 0 deletions

8
W2/fasto/tests/scan.fo Normal file
View File

@ -0,0 +1,8 @@
fun int incr(int a, int b) = a + b
fun int writeInt(int n) = write(n)
fun [int] main() =
let a = {1, 2, 3} in
let b = scan(incr, 0, a) in
map(writeInt, b)