Kind/book/U60/to_bool.kind2
2024-03-15 22:07:01 -03:00

8 lines
97 B
Plaintext

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