Difference between revisions of "Array.zip()"
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...") |
|||
(One intermediate revision by one other user not shown) | |||
Line 35: | Line 35: | ||
| 10 | | 10 | ||
|} | |} | ||
+ | |||
+ | |||
+ | MAGICSQUARE(3).zip(1..5) | ||
+ | |||
+ | {| class="wikitable"|- | ||
+ | | 2 || 7 || 6 | ||
+ | |- | ||
+ | || 1 | ||
+ | |- | ||
+ | | 9 || 5 || 1 | ||
+ | |- | ||
+ | || 2 | ||
+ | |- | ||
+ | | 4 || 3 || 8 | ||
+ | |- | ||
+ | || 3 | ||
+ | |- | ||
+ | || 0 | ||
+ | |- | ||
+ | || 4 | ||
+ | |- | ||
+ | || 0 | ||
+ | |- | ||
+ | || 5 | ||
+ | |} | ||
+ | |||
+ | |||
+ | ==See Also== | ||
+ | [[Array.unzip() |unzip]] |
Latest revision as of 04:34, 8 May 2020
Array.zip(OtherArray)
Give an sequential array with one array from each array alternated.
1..5.zip(5..10)
1 |
5 |
2 |
6 |
3 |
7 |
4 |
8 |
5 |
9 |
0 |
10 |
MAGICSQUARE(3).zip(1..5)
2 | 7 | 6 |
1 | ||
9 | 5 | 1 |
2 | ||
4 | 3 | 8 |
3 | ||
0 | ||
4 | ||
0 | ||
5 |