Lists & arrays
Scalar
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 | list | lambda |
Returns |
|---|---|---|---|
| #01 | ANY[] | LAMBDA |
ANY[] |
Example
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);