mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 23:37:08 +03:00
6 lines
70 B
Plaintext
6 lines
70 B
Plaintext
sum (n: U48) : U48 =
|
|
switch n {
|
|
0: 0
|
|
_: (+ n (sum n-1))
|
|
}
|