&gt; For packages that needs arrays of indices, it would be quite easy to define an `IndexArray` type that does the translation automatically.<p>(just to add: there is currently an open pull request from a core array-focused developer adding such support to base)