On Wed, Nov 8, 2017, at 09:29 PM, Paul Cantrell via swift-evolution wrote:> The problem in the Doodads example is that *the name flatMap is used > to identify two distinct intents*: concatenating arrays and filtering > nils. One can argue that those two operations are, in some lofty > abstract sense, if you squint, two instances of some more general > pattern — but I don’t think it’s fair to say that they represent the > same *intent*. These separate intents deserve separate names. They absolutely represent the same intent if you think of an optional as a collection of zero or one elements. -Kevin Ballard
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution