Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Enumerator::Lazy#to_a
() -> ::Array[E]
lazy.to_a → array
enumerator.c
View on GitHub ↗
static VALUE
lazy_to_a(VALUE self)
{
}
Expands lazy enumerator to an array. See Enumerable#to_a.