<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=""><div><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div class="">The documentation is a bit weird. <i class="" style="font-family: Palatino-Roman;">"It returns the sequence where last is less than or equal to `end`.” </i>seems to tacitly assume that we’re talking about the longest possible sequence with that property. With your proposed <i class="" style="font-family: Palatino-Roman;">"It returns the sequence where last is greater than or equal to `end`?” </i>we’re now talking about the shortest possible sequence with that property.</div><div class=""><br class=""></div><div class="">But what do you mean “no change for integers”? What about 1.stride(through: 10, by: 8)? Wouldn’t that return [1, 9] now and [1, 9, 17] with your change?</div></div></div></div></blockquote><div><br class=""></div>It means, I'm wrong about that. Fixing here, both in code and in text: <a href="https://gist.github.com/erica/03c398c06f6c47824429" class="">https://gist.github.com/erica/03c398c06f6c47824429</a></div><div><br class=""></div><div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">print</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">Array</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span>.<span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">stride</span>(through: <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">10</span>, by: <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">8</span>)))</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><b class="">[1, 9]</b></div><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><br class=""></div></div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #3d1d81" class="">print</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #703daa" class="">Array</span>(<span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">1</span>.<span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">stride</span>(through2: <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">10</span>, by: <span style="font-variant-ligatures: no-common-ligatures; color: #272ad8" class="">8</span>))) // my test implementation</div><div style="margin: 0px; font-size: 18px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; font-size: 11px; line-height: normal;" class=""><b class="">[1, 9, 17]</b></div><div class=""><br class=""></div></div></div><div class="">The second progress now goes *through* 10.</div><div class=""><br class=""></div><div class="">-- E</div></body></html>