<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi, Swift community! I apologize for the delay in reporting our decision here; between one holiday and the other, it took awhile for the core team to assemble a quorum to talk through this.</div><div class=""><br class=""></div>Proposal Link: <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0187-introduce-filtermap.md" class="">https://github.com/apple/swift-evolution/blob/master/proposals/0187-introduce-filtermap.md</a><br class=""><br class="">The second review of SE-0187 “Introduce Sequence.filterMap(_:)” ran from November 15...20, 2017. The result of the first review was consensus to rename the method, and the purpose of the second review was to get more specific feedback on what the new name should be.<div class=""><br class=""></div><div class="">"filterMap" is a name with some precedent in other programming languages, especially functional ones, but some people felt strongly that the name was misleading because, as a combined operation, it wasn't quite a filter or a map. Of the alternatives, the one with the strongest support seemed to be "compactMap", which builds on the precedent of "compact", an operation from other languages (notably Ruby) which returns a copy of the input without nil values. Swift does not currently have such an operation, and in fact it is not currently possible to express it; nonetheless, the core team agrees that it would be a reasonable operation to add, and that "compactMap" is a good name for the operation.</div><div class=""><br class=""></div><div class="">Therefore, SE-0187 is <b class="">accepted</b>, with the <b class="">revision</b> that the new name be Sequence.compactMap(_:), and with the agreement that we will add Sequence.compact() when it is possible to do so.<br class=""><br class="">Thank you all for your continued contributions to making Swift a better language.</div><div class=""><br class="">John McCall<br class="">Review Manager <br class=""></div></body></html>