talibNull

Syntax

talibNull(args...)

Arguments

args... consist of two or more vectors. All vectors must have the same length.

Details

Traverse each vector (v1, v2, …, vn) based on the index starting from 0 and return a tuple.

If all values at index i (v1[i], v2[i], ..., vn[i] ) are non-NULL values, then the elements at index 0 to index i take the NULL values, and values of the element after index i remain unchanged.

Examples

The values at index 2 of all vectors are non-NULL. Therefore, return NULL values for all elements before index 2.

talibNull(2 3 4 5 6, NULL 1 2 NULL 4, 7 NULL 9 10 11)
// output
([,,4,5,6],[,,2,,4],[,,9,10,11])