[swift-evolution] [Review] SE-0187: Introduce Sequence.filterMap(_:)
Shawn Erickson
shawnce at gmail.com
Mon Nov 13 12:11:08 CST 2017
On Mon, Nov 13, 2017 at 10:02 AM C. Keith Ray via swift-evolution <
swift-evolution at swift.org> wrote:
>
>
> On Nov 12, 2017, at 10:54 AM, Paul Cantrell via swift-evolution <
> swift-evolution at swift.org> wrote:
>
>
> On Nov 11, 2017, at 8:35 AM, Gwendal Roué via swift-evolution <
> swift-evolution at swift.org> wrote:
>
> I'd suggest `compactMap` as an alternative name, should `filterMap` find
> too much resistance:
>
>
> I like that name too, though it’s probably my Ruby experience showing. I
> like the clarity of “compact” for nils, “filter” for booleans. I like how
> fluently “compactMap” reads.
>
> If the core team does accept this proposal, I’d trust them to take a
> minute to make a considered, opinionated choice about the name.
>
> You said "compact" removes nil values, so I'd name it "removeNils".
>
Terms like "ignoring" and "skipping".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171113/bd474d03/attachment.html>
More information about the swift-evolution
mailing list