aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/io/random.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2023-03-05 16:28:58 +0100
committerMarvin Borner2023-03-05 16:28:58 +0100
commitf5dc226df6ef8e5f257352409965603bbdaabd42 (patch)
treedb9f656c9093df336c58f556139da01b4ca573c9 /samples/io/random.bruijn
parentca808bc09373f123514bf865a4518bebac3bbbc3 (diff)
Made stdin and argument conversion lazy
Diffstat (limited to 'samples/io/random.bruijn')
-rw-r--r--samples/io/random.bruijn6
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/io/random.bruijn b/samples/io/random.bruijn
new file mode 100644
index 0000000..ab23f91
--- /dev/null
+++ b/samples/io/random.bruijn
@@ -0,0 +1,6 @@
+# "cat /dev/random | bruijn random.bruijn"
+# prints number between 0 and 255 - stdin laziness!
+
+:import std/Pair .
+
+main [^0]