From: Sebastian Hungerecker Date: 2012-05-08T09:45:35+09:00 Subject: Re: Why Enumerator#next does not return more than one value? On 07.05.2012 23:24, F旦ldes L叩szl坦 wrote: > Both #each_slice and #each_cons try to build an Array from the > enumerator, which is - in this case - impossible, because the Enumerator > is infinite and would eat up all the memory. That's not true. Both each_slice and each_cons return enumerators (or yield directly to the block when given one) and it's perfectly possible to use them with infinite sequences.