<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Jan 14, 2017 at 7:41 PM, Dave Abrahams 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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Oh... you mean that word(at:) itself would be linear, and thus<br>
algorithms that iterate the words linearly would be O(N^2)...  yuck.<br></blockquote><div><br></div><div>Couldn&#39;t you fix this by replacing `func word(at n: Int) -&gt; UInt` with `var words: Sequence&lt;UInt&gt;`, producing the words from least to most significant?</div></div></div></div>