The indexed map pattern can be used in the following cases, when:
- You want indexed access of an element in a single operation (order of 1 O(1) operation), instead of iterating an array of elements. This is only when the iterable map feature is also required.
- You also want indexed access for elements along with support to remove elements from the list.