This website requires JavaScript.
Explore
Help
Sign In
HigherOrderCO
/
Kind
Watch
1
Star
1
Fork
0
You've already forked Kind
mirror of
https://github.com/HigherOrderCO/Kind.git
synced
2024-09-11 20:47:25 +03:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
e20170a8bb
Kind
/
book
/
List
/
sum.kind2
6 lines
89 B
Plaintext
Raw
Normal View
History
Unescape
Escape
U60 to U48, use let to make match expr, WIPs
2024-07-05 16:06:49 +03:00
sum (xs: (List U48)): U48 =
diff savida
2024-03-16 04:07:01 +03:00
match xs {
++: (+ xs.head (sum xs.tail))
[]: 0
}
Reference in New Issue
Copy Permalink