Returns the suffix of self after the first n elements, or Stream[] if n > self.length.
self
n
Stream[]
Parameters:
the number of elements to drop.
Returns:
the suffix of self after the first n elements.
455 456 457 458 459 460 461 462 463
# File 'lib/immutable/stream.rb', line 455 def drop(n) Stream.lazy { if n <= 0 || null? self else tail.drop(n - 1) end } end