mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +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
|
|
}
|