talibNull

Syntax

talibNull(args...)

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.

Parameters

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

Returns

A tuple.

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])