Difference between revisions of "Array.fillwith()"
Jump to navigation
Jump to search
(Created page with "* << Z3 Home * Z3 Language Documentation * Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member F...") |
|||
| Line 3: | Line 3: | ||
*[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]] | *[[ Z%5E3_Array_Manipulation_Member_Functions | Listing of Z3 Array Manipulation Member Functions]] | ||
| − | ==Fill | + | ==Array.fillwith(Numbers)== |
| + | *Fill the array with numbers provided. | ||
| + | *Repeat the numbers if fewer than size specified. | ||
| + | |||
| + | |3|.fillwith(1..10) | ||
| + | {| class="wikitable" | ||
| + | |+Spreadsheet | ||
| + | |- | ||
| + | | 1 || 2 || 3 | ||
| + | |- | ||
| + | | 4 || 5 || 6 | ||
| + | |- | ||
| + | | 7 || 8 ||9 | ||
| + | |} | ||
Revision as of 03:59, 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 |