Skip to content
instance method

Enumerator::Lazy#chunk

[U] () { (Elem elt) -> U } -> ::Enumerator[[ U, ::Array[Elem] ]]
() -> ::Enumerator[Elem, ::Enumerator[[ untyped, ::Array[Elem] ]]]
chunk(*args)

Like Enumerable#chunk, but chains operation to be lazy-evaluated.

See also .new #chunk_while #collect also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0