aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Number
diff options
context:
space:
mode:
authorMarvin Borner2024-02-21 20:28:55 +0100
committerMarvin Borner2024-02-21 22:25:09 +0100
commitc9b30f99992c98745d52807f5e45a12f6aee2c5f (patch)
tree68eaf084eaed2ae515e62fb9c55d52836a327b24 /std/Number
parent241315c452b1b06e4b9721cf336d9ab150f7234d (diff)
Additions for Rosetta Code
Diffstat (limited to 'std/Number')
-rw-r--r--std/Number/Conversion.bruijn4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/Number/Conversion.bruijn b/std/Number/Conversion.bruijn
index c9a568f..fe7e63c 100644
--- a/std/Number/Conversion.bruijn
+++ b/std/Number/Conversion.bruijn
@@ -4,13 +4,13 @@
:import std/Number/Unary U
:import std/Number/Ternary T
-# convert unary numbers to ternary
+# converts unary numbers to ternary
unary-to-ternary [0 T.inc (+0)] ⧗ Unary → Ternary
:test (unary-to-ternary (+0u)) ((+0))
:test (unary-to-ternary (+2u)) ((+2))
-# convert ternary numbers to unary
+# converts ternary numbers to unary
ternary-to-unary [T.apply 0 U.inc (+0u)] ⧗ Ternary → Unary
:test (ternary-to-unary (+0)) ((+0u))