Writing things down either in editor or on pen and paper is an undervalued skill. I've often had trouble with reducing or folding a list of values so I wrote it down. Here's how you compute a sum of an integer list.

This is also useful when learning any mathematical formulae. Write it down on your own terms and test the result.