Base encode: Difference between revisions
Content added Content deleted
("Add all appropriate categories to each verb") |
("Better category ordering, add redirects to categories, fix pseudo-adverb categories") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{primitive|x/y}} |
{{primitive|x/y}} |
||
''' |
'''base encode''' or just '''encode''' takes a digit array <code>y</code> and encodes it into a single number using the bases in <code>x</code>. |
||
If <code>x</code> is an atom, repeats it for all elements in <code>y</code>. |
If <code>x</code> is an atom, repeats it for all elements in <code>y</code>. |
||
Line 14: | Line 14: | ||
</pre> |
</pre> |
||
[[Category: |
[[Category:Verbs]] |
||
[[Category:Operator verbs]] |
|||
[[Category:Primitives]] |
[[Category:Primitives]] |
Latest revision as of 06:14, 9 July 2022
Base encode
x/y
base encode or just encode takes a digit array y
and encodes it into a single number using the bases in x
.
If x
is an atom, repeats it for all elements in y
.
2 2 2/1 0 1 5 2/1 0 1 5 10 10 10/3 4 5 345