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

8 lines
179 B
Plaintext

use Bool/{true,false}
abs_diff (a: U60) (b: U60) : U60 =
match x = (U60/to_bool (< a b)) {
true: (- b a)
false: (- a b)
}: U60 // FIXME: unifier can't fill this type