mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 17:25:31 +03:00
10 lines
218 B
Plaintext
10 lines
218 B
Plaintext
// Returns the absolute difference between two U60s
|
|
U60.abs_diff
|
|
: ∀(a: #U60)
|
|
∀(b: #U60)
|
|
#U60
|
|
= λa λb
|
|
let P = λx(#U60)
|
|
let true = #(- b a)
|
|
let false = #(- a b)
|
|
(~(U60.to_bool #(< a b)) P true false) |