<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=""><br class="">
<br class=""><div><blockquote type="cite" class=""><div class="">On Nov 12, 2017, at 10:54 AM, Paul Cantrell via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><br class=""><blockquote type="cite" class="">On Nov 11, 2017, at 8:35 AM, Gwendal Roué via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:<br class=""><br class="">I'd suggest `compactMap` as an alternative name, should `filterMap` find too much resistance:<br class=""></blockquote><br class="">I like that name too, though it’s probably my Ruby experience showing. I like the clarity of “compact” for nils, “filter” for booleans. I like how fluently “compactMap” reads.<br class=""><br class="">If the core team does accept this proposal, I’d trust them to take a minute to make a considered, opinionated choice about the name.<br class=""><br class=""></div></blockquote><br class=""></div><div>You said "compact" removes nil values, so I'd name it "removeNils".</div><div><br class=""></div><div><br class=""></div><div><div style="orphans: 2; text-align: -webkit-auto; widows: 2; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">--<br class="">C. Keith Ray<br class="">Senior Software Engineer / Trainer / Agile Coach / Writer<br class="">*&nbsp;<a href="http://www.thirdfoundationsw.com/keith_ray_resume_2014_long.pdf" class="">http://www.thirdfoundationsw.com/keith_ray_resume_2014_long.pdf</a><br class="">*&nbsp;<a href="https://leanpub.com/wepntk" class="">https://leanpub.com/wepntk</a>&nbsp;&lt;- buy my book?<br class=""></div><div style="orphans: 2; text-align: -webkit-auto; widows: 2; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""></div></div></body></html>