O
O
Ord EO2018-12-24 18:43:16
ruby
Ord EO, 2018-12-24 18:43:16

Can you please explain why this code produces such a result?

This code
5c20fe325fcdf341473738.png
as a result gives this, help me understand why
5c20fe5b5547a610949287.png
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

1 answer(s)
M
Michael Galyuk, 2018-12-24
@OrdeO

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 question

Ask a Question

731 491 924 answers to any question