[swift-evolution] Strings in Swift 4

Erica Sadun erica at ericasadun.com
Thu Feb 2 14:01:19 CST 2017


> On Feb 2, 2017, at 12:35 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> 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

Actually after thinking about that, I withdraw that suggestion.

-- E



More information about the swift-evolution mailing list