IntervalTrees.jl icon indicating copy to clipboard operation
IntervalTrees.jl copied to clipboard

Join "forces" somehow with IntervalSets.jl

Open yakir12 opened this issue 8 years ago • 3 comments

Let me start by saying that I needed (and will now use) exactly this package. Almost weird to find something so close to what I needed in such a young language.

Tim Holy wrote IntervalSets.jl as a basis for anything intervaly. Seems like it might make sense to incorporate his package here. Then again, it might not. But if you see how it could simplify the code here then why not?

Just a thought.

yakir12 avatar Sep 22 '17 10:09 yakir12

A quick thought is to use IntervalSets.ClosedInterval as the base type for your trees. For instance, the intersect function could accept ClosedInterval instead of a tuple of numbers.

yakir12 avatar Sep 22 '17 11:09 yakir12

JuliaCollections has been created since and should better match the discrete math part

o314 avatar Jan 08 '19 15:01 o314

+1, I came here to suggest it too. They key values in this package should definitely support IntervalSets.jl.

jakewilliami avatar Dec 13 '23 10:12 jakewilliami