I am trying to convert one list to multidimensional Array2D. Mostly from [1; 2; 3]to [[1; 2; 3]]. I can’t just use List.toArraybecause I am using an API function that accepts int[,]as one of its inputs.
What is the best way to do this?
source
share