so what is the most elegant way to make a class `F...
# getting-started
h
so what is the most elegant way to make a class
Foo(override val size: Int = 100) : ArrayList<Bar>(size)
that fills itself with instances of
Bar
upon initialization? just:
Copy code
init {
this.fill(Bar())
}
?