List.Zip
透過合併位於多個清單中相同位置的項目,傳回一連串清單。
Syntax
List.Zip(
lists as list
) as list
Remarks
接受一連串清單 lists,並傳回合併位於相同位置之項目的一連串清單。
Examples
Example #1
壓縮簡單清單 {1, 2} 及 {3, 4}。
List.Zip({{1, 2}, {3, 4}})
Result:
{
{1, 3},
{2, 4}
}
Example #2
壓縮長度不同的簡單清單 {1, 2} 及 {3}。
List.Zip({{1, 2}, {3}})
Result:
{
{1, 3},
{2, null}
}
Category
List.Transformation functions