ZIP
Parameters
Order | Name | Type | Desc |
---|---|---|---|
1 | A | Asset List, Property Lists, Relationship List, Map | The first list |
1 | B | As above | The second list |
or
Order | Name | Type | Desc |
---|---|---|---|
1 | Count | const | The number of lists to zip together. |
Returns
Places an item of the same type as passed to the command on the stack.
Description
This function combines two or more lists of the same type into a new list containing all of the items in each list.
Unlike APPEND, this function does not remove duplicate items.
Instead of simply adding list B at the end of list A, this function 'zips' the two lists together by adding alternating items from each list.
If A is ('A', 'B', 'C') and B is ('D', 'E', 'F'), the resulting list would be…
('A','D','B','E','C','F')
This function is often used when you want to combine items that do not have a suitable relationship that would allow the use of a FOR.