in my study program, I frequently need to use arrays of 2, 3 or sometimes even 4 or more dimensions. Is there any easy way to create them? For my purpose, even a third party library is fine. For example, to create an int array of three dimensions data[20,I am looking for something like: val data = Vector(ndimension = (10, 20, 30), default = 0). It is easy enough.
I heard that Kotlin is supported in ACM ICPC but I doubt that anyone would use it because of this same reason even though it can do everything Java can with a nicer syntax.