I create a multiple vector like this:
val a = Vector.fill(3,0)(0)
It outputs:
Vector(Vector(), Vector(), Vector(), Vector(), Vector(), Vector())
I want to append an integer value into the first Vector().
Result should look like this:
Vector(Vector(2), Vector(), Vector(), Vector(), Vector(), Vector())
I tried many things from the internet and this way but it doesn't work...
a(0).appended(2)
How can I do this?