instance method Enumerator::Lazy#drop_while

drop_while {|item| ... } -> Enumerator::Lazy[permalink][rdoc]

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

例:

1.step.lazy.drop_while { |i| i < 42 }
# => #<Enumerator::Lazy: #<Enumerator::Lazy: #<Enumerator: 1:step>>:drop_while>

1.step.lazy.drop_while { |i| i < 42 }.take(10).force
# => [42, 43, 44, 45, 46, 47, 48, 49, 50, 51]

[SEE_ALSO] Enumerable#drop_while