End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Enumerator::Lazy#_enumerable_uniq
_enumerable_uniq
enumerator.c
View on GitHub ↗
static VALUE
lazy_uniq(VALUE obj)
{
const lazyenum_funcs *const funcs =
rb_block_given_p() ? &lazy_uniq_iter_funcs : &lazy_uniq_funcs;
return lazy_add_method(obj, 0, 0, Qnil, Qnil, funcs);
}
Alias of #uniq
Like Enumerable#uniq, but chains operation to be lazy-evaluated.
See also
#uniq
#_enumerable_take_while
#_enumerable_with_index
#_enumerable_take
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1