Sun Sep 15 02:29:55 CEST 2024
narrator: revisiting the Euclid's algorithm... One part was x->y->|x-y| which I implemented as
x->y->(x dec y) inc (y dec x)
(btw I hate succ/pred, it's only there to scare newbies away from FP)
dec is derived somewhere around here but I can't find the record. it was identical to half below...
so I noticed that x dec y
can be writted as T dec x y
and y dec x
as V dec x y
(here V x y z = z x y
, impleemented as BCT, and T x y = y x
implemented as CI
)
so how do I write T inc (T dec x y) (V dec x y)
in a compact form?..