Open yakir12 opened 7 years ago
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.
JuliaCollections has been created since and should better match the discrete math part
+1, I came here to suggest it too. They key values in this package should definitely support IntervalSets.jl.
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.