Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Enumerator::Lazy#eager
() -> ::Enumerator[E, R]
lzy.eager → enum
enumerator.c
View on GitHub ↗
static VALUE
lazy_eager(VALUE self)
{
return enumerator_init(enumerator_allocate(rb_cEnumerator),
self, sym_each, 0, 0, lazy_eager_size, Qnil, 0);
}
Returns a non-lazy Enumerator converted from the lazy enumerator.