Sitemap
Press enter or click to view image in full size
Photo by Brett Jordan on Unsplash

The Enumerable module in Ruby: Part II

3 min readAug 6, 2018

--

NB: feel free to have a look to the part I if you’re unfamiliar with the Enumerable module in Ruby.

NB: feel free to read the Proc and Lambda article if you’re unfamiliar with the class in Ruby.

The only difference between the Enumerator::Yielder#yield and Enumerator::Yielder#<< methods is that the first one returns nil when the second one returns self.

--

--

Responses (1)