apply()

Returns a list that is the result of applying the lambda function to each element of the input list. See the Lambda Functions section for more details

Alias of list_transform()

Arguments & returns

apply(list, lambda)

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

Example

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

Engine example · Run to view results.

Catalog examples

SELECT
  list_transform([1, 2, 3], x -> x + 1);