@Dave, Yes, CollectionType<span></span> would be better than SequenceType. <br><br>On Saturday, 12 March 2016, Dave via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">+1.<div><br></div><div>I’d go so far as to suggest that maybe Optional should conform to CollectionProtocol, since you can pretty easily think of an Optional as a collection that can’t have more than one element.</div><div><br></div><div>- Dave Sweeris</div><div><br><div><blockquote type="cite"><div>On Mar 10, 2016, at 7:32 PM, Erica Sadun via swift-evolution &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-evolution@swift.org&#39;);" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">While I&#39;m not convinced of the utility or lack thereof, wouldn&#39;t it make more sense </div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">to extend `forEach` to support optionals in a similar way that map and flapMap </div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">currently do rather than introduce `ifPresent`?</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><span style="color:rgb(187,44,162)">let</span><span> </span>y:<span> </span><span style="color:rgb(112,61,170)">Int</span>? =<span> </span><span style="color:rgb(39,42,216)">1</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><span style="color:rgb(187,44,162)">let</span><span> </span>n:<span> </span><span style="color:rgb(112,61,170)">Int</span>? =<span> </span><span style="color:rgb(187,44,162)">nil</span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo;min-height:21px"><br></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><div style="margin:0px;line-height:normal"><span style="color:rgb(187,44,162)">_</span> = <span style="color:rgb(79,129,135)">y</span>.<span style="color:rgb(61,29,129)">map</span>({ <span style="color:rgb(61,29,129)">print</span>($0) }) // works in current Swift</div><div style="margin:0px;line-height:normal"><span style="color:rgb(187,44,162)">_</span> = <span style="color:rgb(79,129,135)">n</span>.<span style="color:rgb(61,29,129)">map</span>({ <span style="color:rgb(61,29,129)">print</span>($0) }) // ditto</div></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><span style="color:rgb(79,129,135)"><br></span></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><span style="color:rgb(79,129,135)">y</span>.forEach{ print($0) } // not currently a thing</div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><span style="color:rgb(79,129,135)">n</span>.forEach{ print($0) } // ditto</div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><br></div><div style="margin:0px;font-size:18px;line-height:normal;font-family:Menlo"><div style="font-family:Palatino;font-size:14px">Just spitballing here.</div><div style="font-family:Palatino;font-size:14px"><br></div><div style="font-family:Palatino;font-size:14px">-- E</div><div style="font-family:Palatino;font-size:14px"><br></div></div></div><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">_______________________________________________</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">swift-evolution mailing list</span><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;swift-evolution@swift.org&#39;);" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">swift-evolution@swift.org</a><br style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" style="font-family:Helvetica;font-size:12px;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a></div></blockquote></div><br></div></div></blockquote><br><br>-- <br>-- Howard.<br>