mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-01-05 22:31:56 -05:00
563 B
Vendored
563 B
Vendored
Merge two lists into an array of objects containing pairs of values, one from each list.
table.fold(arr1, arr2)
Parameters
arr1
and arr2
are tables containing indexed values.
Return Value
A new array of objects containing the corresponding elements from each list.
Availability
Premake 5.0 or later.
Examples
-- returns { {"A","X"}, {"B","Y"}, {"C","Z"} }
table.fold({ "A", "B", "C" }, { "X", "Y", "Z" })
-- returns { {"A","X"}, {"B","Y"}, {"C"} }
table.fold({ "A", "B", "C" }, { "X", "Y" })