lib/ru/stream.rb in ru2-2.3.1 vs lib/ru/stream.rb in ru2-2.4.0
- old
+ new
@@ -1,4 +1,6 @@
+require 'set'
+
class Enumerator::Lazy
def [](number_or_range, length=1)
if number_or_range.kind_of? Range
range = number_or_range
if range.begin < 0 || range.end < -1 || (range.exclude_end? && range.end == -1)