(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
Returns the number of successful invocations of next
Counts elements fetched form the underlying iterator. Limit causes iterator to terminate early