This pull request suggests some additional pretty printing for IntervalTrees. For IntervalTrees with a length > 6 I print an abbreviated output. I did some hacky stuff to iterate over parts of the tree. It would be lovely to have getindex. Since you have length and sort!, I think getindex would make sense, especially if this is to be used like R's IRanges.
This pull request suggests some additional pretty printing for IntervalTrees. For IntervalTrees with a length > 6 I print an abbreviated output. I did some hacky stuff to iterate over parts of the tree. It would be lovely to have
getindex
. Since you havelength
andsort!
, I thinkgetindex
would make sense, especially if this is to be used like R's IRanges.