Simplify array creation that is immediately indexed.