mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
6 lines
89 B
Plaintext
6 lines
89 B
Plaintext
sum (xs: (List U48)): U48 =
|
|
match xs {
|
|
++: (+ xs.head (sum xs.tail))
|
|
[]: 0
|
|
}
|