From: Yukihiro Matsumoto Date: 2012-02-14T09:17:27+09:00 Subject: [ruby-core:42578] Re: [ruby-trunk - Feature #4890] Enumerable#lazy Hi, In message "Re: [ruby-core:42556] [ruby-trunk - Feature #4890] Enumerable#lazy" on Tue, 14 Feb 2012 00:36:10 +0900, Thomas Sawyer writes: |Actually, is there any reason why Enumerator's usual methods themselves aren't lazy? Is it necessary to have both? If they were lazy then the notation would be pretty simple: | | [1,2,3].each.select{ |e| ... }.map{ |e| .... }.to_a | |No special method needed, as #each would do the job. Compatibility. I don't want to break tons of programs that expect arrays without calling to_a. matz.