Skip to main content

List.Combine

Returns a single list by combining multiple lists.

Syntax

List.Combine(
lists as list
) as list

Remarks

Takes a list of lists, lists, and merges them into a single new list.

Examples

Example #1

Combine the two simple lists {1, 2} and {3, 4}.

List.Combine({{1, 2}, {3, 4}})

Result:

{
1,
2,
3,
4
}

Example #2

Combine the two lists, {1, 2} and {3, {4, 5}}, one of which contains a nested list.

List.Combine({{1, 2}, {3, {4, 5}}})

Result:

{
1,
2,
3,
{4, 5}
}

Category

List.Transformation functions