mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
9 lines
143 B
Plaintext
9 lines
143 B
Plaintext
use Bool/{true,false}
|
|
|
|
abs_diff (a: U48) (b: U48) : U48 =
|
|
let x = (U48/to_bool (< a b))
|
|
match x {
|
|
true: (- b a)
|
|
false: (- a b)
|
|
}
|