Answer the question
In order to leave comments, you need to log in
Can you please explain why this code produces such a result?
This code
as a result gives this, help me understand why
I am new to ruby, reading a book, I just can not digest this moment.
Why not 2 arrays as a result, namely 1? And how does this code actually work?
Answer the question
In order to leave comments, you need to log in
Because you initialize all default values with one array.
If you want different arrays, then do this:
More info .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question