markdown guide

Want another challenge? Try implementing all of the Enumerable methods using only reduce. It should be noted that the signature for reduce / inject takes an initial value and does not necessarily assume the first item as the initial accumulator.

As an aside, any? / none? do not iterate every element. They break the second they find an element for which the condition is true where any? returns true and none? returns false.

Classic DEV Post from Apr 18

There's More Than One Way to Become a Developer

An overview of the pros and cons of the different education options to become a developer

R Ajeti profile image

Where the wild code grows

Sign up (for free)