Move everything out

This commit is contained in:
NikolajDanger
2022-05-18 10:46:19 +02:00
parent 642fcbd636
commit 8e3427a843
117 changed files with 0 additions and 0 deletions

11
tests/ordchr.fo Normal file
View File

@ -0,0 +1,11 @@
fun char read_char(int i) = read(char)
fun [char] read_string(int n) = map(read_char, iota(n))
fun int add_one(int x) = x + 1
fun [char] main() =
let n = read(int) in
let s1 = read_string(n) in
let s2 = map(chr, map(add_one, map(ord, s1))) in
write(s2)