aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/io
diff options
context:
space:
mode:
authorMarvin Borner2024-03-25 18:59:03 +0100
committerMarvin Borner2024-03-25 18:59:48 +0100
commit14e38ce378236cf54924b58396168c1e94f8e6b2 (patch)
treeecbbb75517695de8897a2a9c58aa1a97ec2546f5 /samples/io
parentf8398804d351667a7b887b89f6f70c7d5c407d22 (diff)
Improved samples by adding links to problems
Diffstat (limited to 'samples/io')
-rw-r--r--samples/io/echo.bruijn9
-rw-r--r--samples/io/random.bruijn6
-rw-r--r--samples/io/reverse.bruijn7
3 files changed, 0 insertions, 22 deletions
diff --git a/samples/io/echo.bruijn b/samples/io/echo.bruijn
deleted file mode 100644
index b17bda1..0000000
--- a/samples/io/echo.bruijn
+++ /dev/null
@@ -1,9 +0,0 @@
-# "echo text | bruijn echo.bruijn"
-
-:import std/Monad .
-
-# returning the binary encoded argument ⇒ echo
-main [0]
-
-# alternative using monads
-main* read >>= return
diff --git a/samples/io/random.bruijn b/samples/io/random.bruijn
deleted file mode 100644
index ab23f91..0000000
--- a/samples/io/random.bruijn
+++ /dev/null
@@ -1,6 +0,0 @@
-# "cat /dev/random | bruijn random.bruijn"
-# prints number between 0 and 255 - stdin laziness!
-
-:import std/Pair .
-
-main [^0]
diff --git a/samples/io/reverse.bruijn b/samples/io/reverse.bruijn
deleted file mode 100644
index 7a3553f..0000000
--- a/samples/io/reverse.bruijn
+++ /dev/null
@@ -1,7 +0,0 @@
-# "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]