in reply to Re: indexing segments
in thread indexing segments

Are these all held in memory? If they are, it's a simple matter of using a slice, as in @foo50000..100000.

I think the way I described the problem was confusing. Yes, the array is held in memory, but the array index for each element is not related to the segment/interval values it holds.

Each element can be represented as something along the lines of: {id => 50, start => 75000, end => 75500}