on Thu Mar 24 2016, Howard Lovatt <swift-evolution@swift.org> wrote:

> Not sure what you are saying?
>
>     for index in empty.indices {
>           // never executed
>     }
>
> Would still work.

Not every algorithm is based on a linear traversal (e.g. binary search,
sort, etc.)  For those you really need to access startIndex and endIndex
independently.


-- 
Dave

_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to