Kind/book/U60/to_bool.kind2
2024-07-05 10:06:49 -03:00

8 lines
97 B
Plaintext

use Bool/{true,false}
to_bool (x: U48) : Bool =
switch x {
0: false
_: true
}: Bool