aboutsummaryrefslogtreecommitdiffhomepage
path: root/std/Char.bruijn
blob: fc517b368f3e480626112695c3db0eb7d8efe690 (plain) (blame)
1
2
3
4
5
6
7
8
# MIT License, Copyright (c) 2023 Marvin Borner

:input std/Number/Binary

:import std/Number/Conversion .

# converts a char to a balanced ternary number
number! [binary→ternary (0 - '0')] ⧗ Char → Number