struct
module T = Biocaml_interval_tree
type t = unit T.t Map.t
let intersects = LMap.intersects
let closest lset loc =
Option.map (LMap.closest lset loc) ~f:(fun (loc', (), d) -> loc', d)
let intersecting_elems lset loc =
LMap.intersecting_elems lset loc /@ fst
let to_stream lset = LMap.to_stream lset /@ fst
let of_stream e = e /@ (fun x -> x, ()) |> LMap.of_stream
end