<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=""><font face="Arial" style="font-size: 12px;" class="">In the playground:</font><div class=""><font face="Arial" style="font-size: 12px;" class=""><br class=""></font></div><div class=""><font face="Menlo" style="font-size: 12px;" class=""> <b class="">"</b>works?<b class="">"</b>.<b class="">capitalizedString</b> // error: value of type 'String' has no member 'capitalizedString'<br class=""></font><font face="Arial" class=""><br class=""><span style="font-size: 12px;" class="">… but:</span></font></div><div class=""><font face="Arial" style="font-size: 12px;" class=""><br class=""></font></div><div class=""><font face="Menlo" class=""><span style="font-size: 12px;" class=""> </span><b style="font-size: 12px;" class="">import</b><span style="font-size: 12px;" class=""> Foundation</span><br class=""><span style="font-size: 12px;" class=""> <b class="">“</b>works!</span><b style="font-size: 12px;" class="">”</b><span style="font-size: 12px;" class="">.</span><b style="font-size: 12px;" class="">capitalizedString</b><span style="font-size: 12px;" class=""> // “Works!” </span></font></div><div class=""><br class=""></div><div class=""><font face="Arial" class=""><span style="font-size: 12px;" class="">Would it not be nice if all the following likewise worked:</span></font></div><div class=""><font face="Arial" class=""><span style="font-size: 12px;" class=""><br class=""></span></font></div><span style="font-family: Menlo; font-size: 12px;" class=""> </span><b style="font-family: Menlo; font-size: 12px;" class="">import</b><span style="font-family: Menlo; font-size: 12px;" class=""> Foundation</span><br style="font-family: Menlo;" class=""><span style="font-family: Menlo; font-size: 12px;" class=""> </span><br style="font-family: Menlo;" class=""><div class=""><font face="Menlo" class=""><span style="font-size: 12px;" class=""> </span><span style="font-size: 12px;" class=""> </span><span style="font-size: 12px;" class="">(<b class="">1</b>..<<b class="">4</b>).<b class="">sample</b><br class=""></span><span style="font-size: 12px;" class=""> </span><span style="font-size: 12px;" class="">[<b class="">1</b>,<b class="">2</b>,<b class="">3</b>].<b class="">sample</b><br class=""></span><span style="font-size: 12px;" class=""> </span><span style="font-size: 12px;" class="">"abc".characters.<b class="">sample</b><br class=""></span><span style="font-size: 12px;" class=""> </span><span style="font-size: 12px;" class="">["a": <b class="">1</b>, "b": <b class="">2</b>, "c": <b class="">3</b>].<b class="">sample</b></span></font></div><div class=""><font face="Arial" style="font-size: 12px;" class=""><br class="">Like so many users of Swift, I have </font><a href="http://stackoverflow.com/a/30285125/1409907" class=""><font face="Arial" style="font-size: 12px;" class="">extensions</font></a><font face="Arial" style="font-size: 12px;" class=""> of </font><span style="font-size: 12px;" class=""><font face="Menlo" class="">IntegerType</font><font face="Arial" class="">, </font><font face="Menlo" class="">ClosedInterval</font><font face="Arial" class=""> and </font><font face="Menlo" class="">CollectionType</font><font face="Arial" class=""> that avail me of the above methods and their family, but I’d much rather if such extensions came with </font><font face="Menlo" class="">Darwin</font></span> <span style="font-family: Arial; font-size: 12px;" class="">or at least</span> <span style="font-size: 12px;" class=""><font face="Menlo" class="">Foundation</font><font face="Arial" class="">.</font></span></div><div class=""><font face="Arial" style="font-size: 12px;" class=""><br class=""></font></div><div class=""><font face="Arial" style="font-size: 12px;" class="">milos</font></div><div class=""><br class=""></div></body></html>