> 
> 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()


_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to