aboutsummaryrefslogtreecommitdiffhomepage
path: root/samples/rosetta/a+b.bruijn
diff options
context:
space:
mode:
authorMarvin Borner2024-03-03 15:03:41 +0100
committerMarvin Borner2024-03-03 22:29:24 +0100
commit6ae44d09faa0ae353c0818705503cad42127d102 (patch)
treea923d00d520f85a608f51416184e5b3b6f178549 /samples/rosetta/a+b.bruijn
parent03155d6e515c76d5ab59f814592484c849313130 (diff)
Even more samples
wtf
Diffstat (limited to 'samples/rosetta/a+b.bruijn')
-rw-r--r--samples/rosetta/a+b.bruijn6
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/rosetta/a+b.bruijn b/samples/rosetta/a+b.bruijn
new file mode 100644
index 0000000..e6be660
--- /dev/null
+++ b/samples/rosetta/a+b.bruijn
@@ -0,0 +1,6 @@
+:import std/Combinator .
+:import std/String .
+:import std/Number .
+:import std/Char C
+
+main (split-by (C.eq? ' ')) → &(add ⋔ string→number)