Trying to write a recursive function that adds successive pairs in a vector.
[1 2 3 4] => [3 5 7]
Pretty much stuck and this is what I h
Partition takes an extra argument specifying how far to step forward between each partition.
(map #(apply + %) (partition 2 1 [1 2 3 4 5])) =>
(map #(apply + %) (partition 2 1 [1 2 3 4 5]))
(3 5 7 9)