How to initialize a big non-calculatable 2d array

In this case, I gathered that what he wanted was not a multiple dimensional array, but rather a one dimensional array of tuples. Looking at the data, the first value is a monotonically increasing integer that corresponds to the index so does not need to be in the data, so you can really just store pairs, so this would probably be a better implementation:

val coordinates = arrayOf(
    0 to 0, 0 to 1, 1 to 0, 0 to -1, -1 to 0, 0 to 2, 2 to 1, 0 to -2, -2 to -1, -1 to 2, 2 to 2,
    1 to -2, -2 to -2, 1 to 2, 3 to 1, -1 to -2, -3 to -1, 0 to 3, 4 to 4, 0 to -3, -4 to -4,
    -1 to 4, 4 to 2, 1 to -4, -4 to -2, 1 to 4, 3 to 0, -1 to -4, -3 to 0, 2 to 3, 5 to 4,
    -2 to -3, -5 to -4, 5 to 3, -5 to -3, 2 to 0, -2 to 0, 6 to 3, -6 to -3, 5 to 2, -5 to -2,
    1 to -1, -1 to 1, 6 to 2, -6 to -2, 4 to 3, -4 to -3, 3 to -1, -3 to 1, 5 to 1, -5 to -1,
    2 to -2, -2 to 2, 5 to 0, -5 to 0, 4 to -4, -4 to 4, 4 to 1, -4 to -1, 5 to -3, -5 to 3,
    6 to 1, -6 to -1, 2 to -4, -2 to 4, 7 to 0, -7 to 0, 5 to -1, -5 to 1, 4 to -1, -4 to 1,
    2 to -3, -2 to 3, 7 to 1, -7 to -1, 6 to -2, -6 to 2, 4 to -2, -4 to 2, 6 to -3, -6 to 3,
    7 to -1, -7 to 1, 7 to -3, -7 to 3, 3 to -2, -3 to 2, 6 to -4, -6 to 4, 8 to 0, -8 to 0,
    7 to -4, -7 to 4, 4 to -3, -4 to 3, 8 to 2, -8 to -2, 8 to -2, -8 to 2, 8 to 4, -8 to -4
)

If the OP doesn’t want to use Pair, they can use a different type and make their own “to”-like infix operator function that creates the type they do want