lead
array →
lead() → array
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.
Parameters
This function has no parameters.
Examples
{1, 2, 3} | lead → {2, 3, #null}
Kind: Function
Scope: array
Aliases: array-to-lead