on Fri May 06 2016, Kevin Ballard <[email protected]> wrote:

> On Fri, May 6, 2016, at 02:23 PM, Dave Abrahams via swift-evolution wrote:
>> 
>> on Fri May 06 2016, Kevin Ballard <[email protected]> wrote:
>> 
>> >     One idea that came out of the core team discussion was something like:
>> >
>> >     sequence(from: 0) { $0 += 42 }
>> >
>> >     Since it returns a sequence.
>> >
>> > It just occurred to me that, if we follow existing naming conventions, this
>> > function would end up returning a value of type SequenceSequence 😁.
>> 
>> Why do you think so?
>
> A random sampling of functions that generate non-Array sequences and their 
> corresponding sequence type:
>
> * Sequence.flatten() -> FlattenSequence
> * Sequence.joined() -> JoinedSequence
> * LazySequenceProtocol.map() -> LazyMapSequence
> * LazySequenceProtocol.filter() -> LazyFilterSequence

Oh!  I get it.

-- 
Dave

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to