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

6 lines
70 B
Plaintext

sum (n: U60) : U60 =
switch n {
0: 0
_: (+ n (sum n-1))
}