[swift-evolution] [Accepted and Focused Re-review] SE-0187: Introduce Sequence.filterMap(_:)

Jean-Daniel mailing at xenonium.com
Thu Nov 16 04:23:27 CST 2017



> 
> Here's a variety of possible new names, in descending order of personal preference:
> 
> mapUnwrappingSome
> mapAndUnwrap      // Thanks Nevin, this is surprisingly clear.
> mapUnwrapSome
> mapUnwrapIfSome
> mapSome           // For these last three, it's unclear when nil elements are dropped. Before or after the map?
> mapNonNil
> mapStrippingNil
> 

An other explicit alternative

mapIfNotNil()


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171116/6a48e1a0/attachment.html>


More information about the swift-evolution mailing list