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

Tino Heth 2th at gmx.de
Thu Nov 9 10:13:37 CST 2017


> Experienced programmers (as experienced as any Swift programmer can be for a 4-year-old language) frequently use flatMap when they mean map
When you look at those examples:
What would stop those programmers to use filterMap in the exact same way, instead of switching to map?
A hypothetic migrator most likely would just replace names...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171109/2fe210e9/attachment.html>


More information about the swift-evolution mailing list