https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112014-11-06T08:01:30ZRuby Issue Tracking SystemRuby master - Feature #10482: Allow ignored items to vary in `Enumerable#chunk`.https://bugs.ruby-lang.org/issues/10482?journal_id=498242014-11-06T08:01:30Zsawa (Tsuyoshi Sawada)
<ul></ul><p>Sorry, the example was wrong; I mistook <code>nil</code> and <code>NilClass</code>. But I hope you get the point.</p> Ruby master - Feature #10482: Allow ignored items to vary in `Enumerable#chunk`.https://bugs.ruby-lang.org/issues/10482?journal_id=498992014-11-11T10:08:16Zakr (Akira Tanaka)akr@fsij.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>The method has a form which is incompatible with your proposal: enum.chunk(initial_state) { |elt, state| ... }</p>
<p>However I deprecated the form (since Ruby 2.2), your porposal may be considerable in future.</p>