Skip to main content

List.Select

Returns a list of values that match the condition.

Syntax

List.Select(
list as list,
selection as function
) as list

Remarks

Returns a list of values from the list list, that match the selection condition selection.

Examples

Example #1

Find the values in the list {1, -3, 4, 9, -2} that are greater than 0.

List.Select({1, -3, 4, 9, -2}, each _ > 0)

Result:

{1, 4, 9}

Category

List.Selection