BioJulia / IntervalTrees.jl

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

Pull request/a9a8d91c #8

Closed phaverty closed 9 years ago

phaverty commented 9 years ago

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.