(def coll [10 27 7 12])
Desired result is:
==> (10 37 44 56)
I tried:
(map #(+ % (next %)) coll)
with no success
reductions can do that:
reductions
(reductions + [10 27 7 12]) ; → (10 37 44 56)