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

6 lines
126 B
Plaintext

U60.match (x: U60) (P: U60 -> *) (s: U60 -> (P (+ 1 x))) (z: (P 0)) : (P x) =
switch x {
0: z
_: (s x-1)
}: (P x)