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

:input std/Number/Binary

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