R/40-interval_index-core.R
peek_containing.Rd
Peek intervals containing a query interval
peek_containing(x, start, end, which = c("first", "all"), bounds = NULL)
An `interval_index`.
Query interval start.
Query interval end.
One of `"first"` or `"all"`.
Optional boundary override. One of `"[)"`, `"[]"`, `"()"`, `"(]"`.
For `which = "first"`, the payload item from the first match (or `NULL` on no match). For `which = "all"`, an `interval_index` slice of matches.