6 ms·
Very cool. Does anybody know when this was added? I tried looking in the ruby doc but didn't see. That is one nice thing about javadocs in comparison. They usua
by mberning 7y ago
Very cool. Does anybody know when this was added? I tried looking in the ruby doc but didn't see. That is one nice thing about javadocs in comparison. They usually say “since 1.6” or whatever.
- tomstuart 7y agoLazy enumerators were added in Ruby 2.0 back in 2013: https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-is-released/ https://www.ruby-lang.org/en/news/2013/02/24/ruby-2-0-0-p0-i...
- mberning 7y agoThanks. I have not had occasion to use them so was curious if they were a newer or just less known feature.
- actsasbuffoon 7y agoI’ve used them quite a bit since they were introduced. Still, the plural of anecdote isn’t data, so I couldn’t tell you how widespread their usage is.