diff options
Diffstat (limited to 'samples/io/reverse.bruijn')
-rw-r--r-- | samples/io/reverse.bruijn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/io/reverse.bruijn b/samples/io/reverse.bruijn new file mode 100644 index 0000000..7a3553f --- /dev/null +++ b/samples/io/reverse.bruijn @@ -0,0 +1,7 @@ +# "echo tacocat | bruijn reverse.bruijn" + +:import std/List . + +# stdin is encoded as binary numbers in a list +# reversing the list reverses the input! +main [<~>0] |