Share via


List.Select

Syntax

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

About

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

Example 1

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

Usage

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

Output

{1, 4, 9}