<div dir="ltr">On Fri, Jun 24, 2016 at 12:59 AM, William Shipley via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><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 style="word-wrap:break-word">Here are some of my real-world examples:<div><br></div><div><div style="margin:0px;line-height:normal"><span>        </span><span style="color:#bb2ca2">for</span><span> modelUUIDAndInterfaceElement </span><span style="color:#bb2ca2">in</span><span> </span><span style="color:#4f8187">modelUUIDsToInterfaceElements</span><span> </span><span style="color:#bb2ca2">where</span><span> !usedInterfaceElements.</span><span style="color:#3d1d81">contains</span><span>(modelUUIDAndInterfaceElement.</span><span style="color:#272ad8">1</span><span>) {</span></div></div></div></blockquote><div><br></div><div>Not a practitioner of 80-character line limits, I take it?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>…</div></blockquote><div>        }</div><div><br></div><div><div style="margin:0px;line-height:normal"><span>        </span><span style="color:#bb2ca2">for</span><span> anchor </span><span style="color:#bb2ca2">in</span><span> wall.</span><span style="color:#4f8187">anchors</span><span> </span><span style="color:#bb2ca2">where</span><span> boundsRect.</span><span style="color:#3d1d81">contains</span><span>(anchor.</span><span style="color:#4f8187">origin</span><span>) {</span></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span>…</span></div></blockquote><div><span><div>        }</div><div><br></div></span></div><div><span>        <span style="color:#bb2ca2">for</span> otherWall: <span style="color:#4f8187">Wall</span> <span style="color:#bb2ca2">in</span> <span style="color:#bb2ca2">self</span> <span style="color:#bb2ca2">where</span> otherWall != wall &amp;&amp; !removedWalls.<span style="color:#3d1d81">contains</span>(otherWall) {</span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span>…</span></div></blockquote><div><span><div>        }</div><div><br></div></span></div><div><span><div style="margin:0px;line-height:normal"><span>        </span><span style="color:#bb2ca2">for</span><span> wall </span><span style="color:#bb2ca2">in</span><span> </span><span style="color:#bb2ca2">self</span><span> </span><span style="color:#bb2ca2">as</span><span> </span><span style="color:#703daa">Set</span><span>&lt;</span><span style="color:#4f8187">Wall</span><span>&gt; {</span></div><div style="margin:0px;line-height:normal"><span>            </span><span style="color:rgb(187,44,162)">for</span><span> otherWall </span><span style="color:rgb(187,44,162)">in</span><span> </span><span style="color:rgb(187,44,162)">self</span><span> </span><span style="color:rgb(187,44,162)">as</span><span> </span><span style="color:rgb(112,61,170)">Set</span><span>&lt;</span><span style="color:rgb(79,129,135)">Wall</span><span>&gt; </span><span style="color:rgb(187,44,162)">where</span><span> otherWall != wall {</span></div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span><div><span>…</span></div></span></div></blockquote></blockquote><div><span><div><span><div>            }</div><div><div>        }</div></div><div><br></div></span></div><div>        <span style="color:rgb(187,44,162)">for</span> wall <span style="color:rgb(187,44,162)">in</span> <span style="color:rgb(187,44,162)">self</span> <span style="color:rgb(187,44,162)">as</span> <span style="color:rgb(112,61,170)">Set</span>&lt;<span style="color:rgb(79,129,135)">Wall</span>&gt; <span style="color:rgb(187,44,162)">where</span> !checkedWalls.<span style="color:rgb(61,29,129)">contains</span>(wall) {</div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span><div><span>…</span></div></span></div></blockquote><div><span><div><div>        } </div></div><div><br></div><div>(x2 on that one)</div><div><br></div><div><span>        <span style="color:#bb2ca2">for</span> otherPieceOfFurnitureNode <span style="color:#bb2ca2">in</span> localFurnitureModelUUIDsToInterfaceElements!.<span style="color:#703daa">values</span> <span style="color:#bb2ca2">where</span> otherPieceOfFurnitureNode !== pieceOfFurnitureNode {</span></div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span><div><span>…</span></div></span></div></blockquote><div><span><div><span><div>        }</div><div><br></div></span></div><div><span>        <span style="color:#bb2ca2">for</span> lineSegmentObject <span style="color:#bb2ca2">in</span> wallRelatedLineSegments <span style="color:#bb2ca2">where</span> remainingLineSegments.<span style="color:#3d1d81">contains</span>(lineSegmentObject) {</span></div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span><div><span>…</span></div></span></div></blockquote><div><span><div><span><div>        }</div><div><br></div></span></div><div><span>        <span style="color:#bb2ca2">for</span> colinearLineSegmentObject <span style="color:#bb2ca2">in</span> remainingLineSegments <span style="color:#bb2ca2">where</span> colinearLineSegmentObject.<span style="color:#4f8187">angle</span>.<span style="color:#31595d">isEssentially</span>(infiniteLineAngle: lineSegmentObject.<span style="color:#4f8187">angle</span>) {</span></div></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span><div>…</div></span></div></blockquote><div><span><div><div>        }</div></div><div><br></div><div><br></div><div>I think this is basically as many as are found on all of github?</div><div><br></div><div>-W</div></span></div></div><br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div></div>