libarray-intspan-perl

Handles arrays of scalars or objects using integer ranges as index
  https://metacpan.org/release/Array-IntSpan
  0
  no reviews



Array::intspan brings the speed advantages of set::intspan to arrays. uses include manipulating grades, routing tables, or any other situation where you have mutually exclusive ranges of integers that map to given values.

array::intspan is also able to consolidate ranges by comparing the adjacent values of the range. if 2 adjacent values are identical, the 2 adjacent ranges are merged.