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...") |
|||
Line 34: | Line 34: | ||
|- | |- | ||
| 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 | ||
|} | |} |
Revision as of 15:43, 4 March 2017
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 |