Difference between revisions of "Array.fillwith()"

From ZCubes Wiki
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...")
 
 
(3 intermediate revisions by the same user not shown)
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 With==
+
==Array.fillwith(Numbers)==
 +
*Fill the array with numbers provided.
 +
*Repeat the numbers if fewer than size specified.
 +
 
 +
|3|.fillwith(1..10)
 +
{| class="wikitable"
 +
|-
 +
| 1 || 2 || 3
 +
|-
 +
| 4 || 5 || 6
 +
|-
 +
| 7 || 8 ||9
 +
|}
 +
 
 +
|2x3|.fillwith(#a..z)
 +
{| class="wikitable"
 +
|-
 +
| a || b || c
 +
|-
 +
| d || e || f
 +
|}
 +
 
 +
==See Also==
 +
*[[Array.addrow() | addrow]]
 +
*[[Array.addcolumn() | addcolumn]]
 +
*[[Array.insertcolumn() | insertcolumn]]

Latest revision as of 04:11, 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

|2x3|.fillwith(#a..z)

a b c
d e f

See Also