BioJulia / IntervalTrees.jl

A data structure for efficient manipulation of sets of intervals
MIT License
44 stars 17 forks source link

Needs convert method for Tuples for Intervals #35

Open sambitdash opened 6 years ago

sambitdash commented 6 years ago
Base.convert(::Type{Interval{T}}, range::tuple{T, T}) where T

is needed. As in case of IntervalMaps you can set value as t[(1,2)] = 5 but a = t[(1,2)] will fail while t[1:2] will work.