ZIP

Parameters

OrderNameTypeDesc
1AAsset List, Property Lists, Relationship List, MapThe first list
1BAs aboveThe second list

or

OrderNameTypeDesc
1CountconstThe 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.

See Also