let to_stream dom = (Map.to_stream dom) /@ (fun (k,s) -> Stream.map ~f:(fun (lo,hi) -> k, Range.make lo hi) (Biocaml_iset.to_stream s)) |! Stream.concat