In this video you will learn how to use the Array.new method to create an array with a specific amount of elements.
You will also learn that you can pass a block to this method so you can tell it what you want to pre-fill the array with. Watch the full video to see the examples.
Learn more on my site:
[ Ссылка ]
Ещё видео!