This commit is contained in:
NikolajDanger
2022-04-30 16:18:13 +02:00
parent 2465cf84b7
commit b9ef4bb00e
174 changed files with 20605 additions and 100 deletions

8
W1/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)