></div>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">def ending_to(self, offset):
    &#34;&#34;&#34;
    Returns intervals that end before or at the given end offset.
    &#34;&#34;&#34;
    return self._by_end.irange(maximum=(0, offset, sys.maxsize))</code></pre>
</details>
</dd>
<dt id="gatenlp.impl.sortedintvls.SortedIntvls.ending_within"><code class="name flex">
<span>def <span class="ident">ending_within</span></span>(<span>self, start, end)</