[swift-evolution] Separating the finite-vs-infinite distinction from single-vs-multi-pass

Dave Abrahams dave at boostpro.com
Wed Jul 6 18:50:14 CDT 2016


on Wed Jul 06 2016, Dave Abrahams <dabrahams-AT-apple.com> wrote:

> Finally, as mentioned earlier we could easily supply a protocol that
> makes it no harder than conforming to IteratorProtocol is.  You don't
> even need to make your iteration state equatable because we can compare
> counters stored in the indices.  I'll post a gist illustrating this
> today.

https://gist.github.com/dabrahams/7629347b76c8d87ce8278e68ae70469f

Enjoy,

-- 
Dave


More information about the swift-evolution mailing list