-1

I feel like the real problem is not SequenceType.find missing but
SequenceType.first which is much more general and useful.
CollectionType.first should be generalized to SequenceType.first. This will
fix seq.lazy.filter(predicate).first. And I don't feel it deserves a
separate find method.

On a side note this proposal highlights another problem: array-returning
versions of SequenceType.map/flatMap/filter are often unexpectedly used
instead of lazy variants
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to