4 lines
No EOL
64 B
Text
4 lines
No EOL
64 B
Text
sum([]) -> 0.
|
|
sum(x::xs) -> x + sum(xs).
|
|
|
|
print(sum([1, 2, 3])). |