This website requires JavaScript.
Explore
Help
Sign In
uplime
/
lamb
Watch
1
Star
0
Fork
You've already forked lamb
0
Code
Issues
Pull requests
Projects
Releases
Wiki
Activity
c19a732bd9
lamb
/
examples
/
listlength.lamb
4 lines
64 B
Text
Raw
Normal View
History
Unescape
Escape
listsum -> listlength; add actual listsum
2013-10-21 05:43:59 +00:00
sum([]) -> 0.
sum(x::xs) -> 1 + sum(xs).
refactor examples to use print(x) instead of putstrln(itos(x))
2013-10-21 05:45:52 +00:00
print(sum([1, 2, 3])).
Reference in a new issue
Copy permalink