Sequencing functions
Reference documentation for Expressif functions in the array/sequencing scope.
| Name | Overview |
|---|---|
adjacent | Evaluates an operation against every consecutive pair of input values. Returns null when the input cannot be evaluated. |
lag | Returns the previous value for each input element. The first output value is null because there is no previous element. Preserves input cardinality (one output item per input item). Returns null when the input is not an enumerable or is a string. |
lead | Returns the next value for each input element. The last output value is null because there is no next element. Preserves input cardinality (one output item per input item). Returns null when the input is not an enumerable or is a string. |
pairwise | Returns each consecutive pair of input values as a tuple. Returns null when the input cannot be evaluated. |
position-of | Returns the zero-based position of the first input item equal to the specified value. Returns null when no item matches or the input cannot be evaluated. |
reverse | Returns the input enumerable with elements emitted in the opposite order. Preserves input cardinality (one output item per input item). Returns null when the input is not an enumerable or is a string. |
with-position | Returns each input item paired with its zero-based position as a tuple in (position, value) order. Preserves input order and cardinality. Position terminology distinguishes sequence locations from indexes used to accelerate searches. Returns null when the input cannot be evaluated. |