.reduce

also known as .inject
note that the block is placeholder, the accumulator and element can interact through other operations, such as multiply and divide.

My goodness, that is beautiful.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Custom Web App Development Company India | Web Development Services

Serving Ember and Rails locally with SSL/TLS

The zen of code reviews

Simplified Multi-Factor Authentication for AWS

The Best JSON Validation Library for Python in 2022

5 Tips to help get you through your first month at Bloc.

Adding HTTP Headers to a SOAP Request in Java

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Celeste Neuenswander

Celeste Neuenswander

More from Medium

Like Glass

On a Long Enough Time Line

The Western LoL Breakdown #1

How can light improve the fitness experience?