Skip to main content

List.Transform

Returns a new list of values computed from this list.

Syntax

List.Transform(
list as list,
transform as function
) as list

Remarks

Returns a new list of values by applying the transform function transform to the list, list.

Examples

Example #1

Add 1 to each value in the list {1, 2}.

List.Transform({1, 2}, each _ + 1)

Result:

{2, 3}

Category

List.Transformation functions