Hi,

Suppose I have several arrays of the same type T with the same length N. I 
would like to concatenate them to an array of type List<T> (or perhaps 
FixedSizeList<T, N> for better performance).

For example,Input T = int32, [1, 2, 3], [4, 5, 6], [7, 8, 9] will have output 
List<int32> of size 3: [[1, 4, 7], [2, 5, 8], [3, 6, 9]].

T can also be a nested type like T = List<int32> [[1, 2, 3], [4]] and [[5], [6, 
7, 8, 9]] with output List<List<int32>> of size 2: [[[1, 2, 3], [5]], [[4], [6, 
7, 8, 9]]].

Conceptually, I want to “squeeze” multiple columns of a table to a single 
column of List type.

Is there an existing utility function or compute kernel that does this?

Thanks,
Jin

Reply via email to