mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-08-17 16:40: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
|
|
}
|