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

Tino Heth 2th at gmx.de
Thu Nov 9 12:58:21 CST 2017


> The problem in the Doodads example is that the name flatMap is used to identify two distinct intents: concatenating arrays and filtering nils.
You may have read about my issues with the prefix, but following the same logic of „filtering nils“, the other variant of flatMap just filters out empty arrays.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171109/4364faa2/attachment.html>


More information about the swift-evolution mailing list