aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/io/reverse.bruijn
blob: d5a059784628a3b11eea5a8f938bd79ec4468513 (plain) (blame)
1
2
3
4
5
6
7
8
9
# "echo tacocat | bruijn reverse.bruijn"

:import std/List .
:import std/Combinator .
:import std/Monad .

# stdin is encoded as binary numbers in a list
# reversing the list reverses the input!
main [<~>0]