> On Nov 15, 2017, at 4:15 PM, David Hart via swift-evolution 
> <swift-evolution@swift.org> wrote:
> 
> I’m very much against a term like compactMap because it uses the term compact 
> which has no precedence in Swift’s Standard Library.

I don’t really care what the name ends up being (as long as it’s not 
“flatMap”), but you do bring up something worth addressing.

I imagine a majority of calls to this function are of the lines of “compactMap 
{ $0 }”, so maybe it’s worth adding a helper/alias like “compact()”?

Stephen
https://www.pointfree.co
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to