Difference between revisions of "Array.fillwith()"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
|3|.fillwith(1..10) | |3|.fillwith(1..10) | ||
{| class="wikitable" | {| class="wikitable" | ||
− | |||
|- | |- | ||
| 1 || 2 || 3 | | 1 || 2 || 3 |
Revision as of 04:00, 1 April 2020
Array.fillwith(Numbers)
- Fill the array with numbers provided.
- Repeat the numbers if fewer than size specified.
|3|.fillwith(1..10)
1 | 2 | 3 |
4 | 5 | 6 |
7 | 8 | 9 |