<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">FWIW: Strictly speaking Option in Scala is not a collection. It happens to have all the methods that make it look like one and also an implicit conversion that creates a List of zero or one element. Which is kind of what Dave suggests.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 15, 2015, at 7:21 PM, Rob Mayoff via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_extra"><div class="gmail_quote"><span class=""><div class="">What's the advantage? Why would we want to have a type that is isomorphic to Optional, except that conforms to CollectionType?<br class=""></div></span></div></div></div></blockquote><div class=""><br class=""></div><div class="">My question (apologies if it has been answered already) is: Why isn't Optional a CollectionType, like it is in Scala?</div><div class=""><br class=""></div></div></div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=ZdiBPeKLcE1ZkxjSogRct0bur3WJrrZggvfZYd5wkdL-2BroiUiR1eK4ZCoCmCY8aVAQso-2BT5TcnGN-2Ba52G-2Bc2tsPYc8s0R7OMl-2F7OlI39ks-2Fx0yy9SRvjSfz9TxIPk8dNcPPdPPnOsHrR3EAaN8c4kAZoH-2BAt6n-2FQAIXS-2BD-2BElXYxY5Lv2lxEqXZT6cedXMpMVfAID3Bdc6or-2BEV7e3X0bnOqiDr-2F92vDXgULnMTNus4-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;" class="">
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></body></html>