in reply to Need a better name for a module...
You may want to look at Toby Everett's Array::IntSpan module, which handles ranges of numbers and lookups into them.