array_filter()

Constructs a list from those elements of the input list for which the lambda function returns true

Alias of list_filter()

Arguments & returns

array_filter(list, lambda)

Scalar
Overload link listlambda Returns
#01 ANY[]LAMBDA ANY[]

Example

array_filter example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.

Catalog examples

SELECT
  list_filter([3, 4, 5], x -> x > 4);