aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/fun/IO.bruijn
blob: 725e093a2bff0ee7d443ce844868252fe92a58e0 (plain) (blame)
1
2
3
4
5
6
# read two lines using monadic I/O
# printf "i love\nmonads\n" | bruijn IO.bruijn

:import std/IO .

main read-line >>= [read-line >>= [return [0 2 1]]]