Ruby 3.1.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Enumerator::Lazyクラス > chunk_while

instance method Enumerator::Lazy#chunk_while

chunk_while {|elt_before, elt_after| ... } -> Enumerator::Lazy[permalink][rdoc]

Enumerable#chunk_while と同じですが、Enumerator ではなく Enumerator::Lazy を返します。

[EXCEPTION] ArgumentError:
ブロックを指定しなかった場合に発生します。