[swift-evolution] SE-0187: Introduce Sequence.filterMap(_:)

Tino Heth 2th at gmx.de
Thu Nov 9 12:35:29 CST 2017


> This proposal only proposes renaming the “filterNonesAndMap” variant (though that name is misleading, it would be “filterNonesAfterMapping” if anything); the other uses of flatMap will remain unchanged.
… then it should be really right: As I learned in the thread, there is a map step before filter, and another map afterwards - so „filterNonesAfterMappingAndMap“ (that’s why I don’t like the use of the term „filter“ here — if you want an accurate name that contains this verb, it gets quite complicated…)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171109/b1e3e3a0/attachment.html>


More information about the swift-evolution mailing list