[swift-evolution] [Accepted with modifications] SE-0045: Add scan, prefix(while:), drop(while:), and unfold to the stdlib
Brent Royal-Gordon
brent at architechies.com
Thu May 5 16:27:53 CDT 2016
> One idea that came out of the core team discussion was something like:
>
> sequence(from: 0) { $0 += 42 }
>
> Since it returns a sequence.
It definitely occurred to me that this was kind of just a way to construct a generic iterator. Maybe a new AnyIterator (I believe there is such a thing) constructor?
--
Brent Royal-Gordon
Sent from my iPhone
More information about the swift-evolution
mailing list