Suppose I have a range of keys, say 0 -> 1000
Say 0 - > 99 map to one object 100 -> 251 map to another etc. etc.
What is a good way to map a key to an object without having to have an array of 1000 size and a bunch of if (x >= 0 && x <= 99) business?
I mean without any logic i.e. a stairstep table