<How do I initialize these arrays?> I want to have...
# stackoverflow
u
How do I initialize these arrays? I want to have a class that stores three sets of 30 Foos each. I can declare them as arrays of Foo but I don't know how I can initialize them (give them default values) with 30 elements. data class Container ( val first: Array, val second: Array, val third: Array, ) data class Foo (val a: Int, val b: Int)