(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
(Since version ) see corresponding Javadoc for more information.
Extension of the iterator trait where the next element can be peeked without popping it