mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-07-14 22:50:28 +03:00
9 lines
81 B
Plaintext
9 lines
81 B
Plaintext
sum
|
|
- xs: (List U48)
|
|
: U48
|
|
|
|
match xs {
|
|
++: (+ xs.head (sum xs.tail))
|
|
[]: 0
|
|
}
|