(Changed in version 2.8.0) collect has changed. The previous behavior can be reproduced with toSeq.
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
<invalid inheritdoc annotation>
Iterator that will return references with their commit and the commit index in the reference.