[swift-evolution] Feature proposal: Range operator with step

Milos Rankovic milos at milos-and-slavica.net
Wed Apr 6 15:19:50 CDT 2016


Apologies, I inverted the operator there! This is, of course what I meant:

> On 6 Apr 2016, at 21:08, Ted F.A. van Gaalen via swift-evolution <swift-evolution at swift.org> wrote:
> 
> v1 >  v2:   is allowed and correctly evaluated.  e.g. (8.0…-3.14159).by(-0.0001) 

If the range does not assume `start <= end`, is it still necessary to also indicate the traversal direction with the sign of the step (`-0.0001`)?

milos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160406/e28569ec/attachment.html>


More information about the swift-evolution mailing list