I'm trying to define a large number of primitive 2D arrays in Kotlin and it appears to lack a concise way to do so. For example, in C++ you can do the following:
int arr[2][5] =
{{1,8,12,20,25},
{5,9,13,24,26}};
The best I've been able to come up with in Kotlin is
val arr = arrayOf(
intArrayOf(1,8,12,20,25),
intArrayOf(5,9,13,24,26))
Java (with its pointless repetition) even has Kotlin beat here
int[][] arr = new int[][]
{{1,8,12,20,25},
{5,9,13,24,26}};
While the extra boilerplate isn't the end of the world, it is annoying.