Selection functions
Reference documentation for Expressif functions in the array/selection scope.
| Name | Overview |
|---|---|
closest-by | Returns the original source element whose expression result is nearest to the numeric target. Preserves the first match on ties and skips null criteria. Returns null for empty arrays, all-null criteria, or non-array input. |
first-elements | Returns up to the requested number of elements from the start of the input enumerable. Returns null when the input is not an enumerable, is a string, or the count is negative. |
last-elements | Returns up to the requested number of elements from the end of the input enumerable, preserving their order. Returns null when the input is not an enumerable, is a string, or the count is negative. |
max-by | Returns the original source element whose expression result is greatest. Preserves the first match on ties and skips null criteria. Returns null for empty arrays, all-null criteria, or non-array input. |
min-by | Returns the original source element whose expression result is smallest. Preserves the first match on ties and skips null criteria. Returns null for empty arrays, all-null criteria, or non-array input. |
single | Returns the only element of the input array without transforming it. Returns null when the input is empty, contains more than one element, or cannot be evaluated as an array. |
skip-first-elements | Omits the requested number of elements from the start of the input enumerable and returns the remainder. Returns null when the input is not an enumerable, is a string, or the count is negative. |
skip-last-elements | Omits the requested number of elements from the end of the input enumerable and returns the remainder. Returns null when the input is not an enumerable, is a string, or the count is negative. |
slice-elements | Returns the elements in the zero-based half-open range from start, inclusive, to end, exclusive. Returns null when the input is not an enumerable, is a string, or either bound is negative. |
value-at | Returns the input item at the specified zero-based position. Returns null when the position is negative or out of range, or the input cannot be evaluated. |