tricu/demos/size.tri

22 lines
318 B
Plaintext
Raw Normal View History

2025-01-23 18:57:59 -06:00
compose = (\f g x : f (g x))
succ = y (\self :
triage
1
t
(triage
(t (t t))
(\_ tail : t t (self tail))
t))
size = (\x :
(y (\self x :
compose succ
(triage
(\x : x)
self
(\x y : compose (self x) (self y))
x)) x 0))
2025-01-25 09:18:13 -06:00
size size