For a functional solution `list.reduce { a, b -&gt...
# getting-started
d
For a functional solution
list.reduce { a, b -> a + b }
It'll die if you have no items in the list though.