[swift-evolution] Strings in Swift 4
Erica Sadun
erica at ericasadun.com
Thu Feb 2 13:35:27 CST 2017
> On Feb 2, 2017, at 8:58 AM, Jonathan Hull via swift-evolution <swift-evolution at swift.org> wrote:
>
> Just out of curiosity, what are the use-cases for an infinite sequence (as opposed to a sequence which is bounded to the type’s representable values)?
>
> Thanks,
> Jon
Now that drop(while:) and prefix(while:) have dropped, they're a lot nicer than having to do sequence(first: 1, next: { $0 + 1 })
-- E
More information about the swift-evolution
mailing list