Open
Description
.drop(...)
is equivalent to calling .next()
(up to) a given number of times, which is very useful. unfortunately, .drop(...)
is not required to return the same instance (though the default implementation does), which means you need to assign it to a fresh val
. Having to create a second binding for the iterator is ugly, and potentially error prone if you accidentally keep using the old Iterator
instance. .dropInPlace(...)
would be guaranteed to return this.type
, allowing you to keep a single val
/binding.