Returns the index of the first element in the indicated array for which the given function returns something other thanDocumentation Index
Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
Use this file to discover all available pages before exploring further.
0. Index counting starts at 1.
The <function> parameter must be included.
Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<function> | A Lambda function used to check elements in the array | Any Lambda function |
<array> | The array evaluated by the function | Any array |
Return Type
ARRAY of the same type as the input array
Example
The following example returns the first value in thelevels array that is greater than 2:
3