Description
When calling JaggedArray.transpose or JaggedList.transpose on arrays resp. lists with differently long arrays/lists inside, an exception is thrown. But this exception does not help detect the problem in a, say, long pipeline.
Repro steps
- Run this exemplary code snippet:
JaggedList.transpose [[1;2;3]; [4;5]]
JaggedArray.transpose [|[|1;2;3|]; [|4;5|]|]
- See errors.
Expected behavior
Throws an exception that tells the user that array/list elements are varying in length.
Actual behavior
Throws following exceptions:
System.ArgumentException: The input list was empty. (Parameter 'list'), resp.
System.IndexOutOfRangeException: Index was outside the bounds of the array..
Description
When calling
JaggedArray.transposeorJaggedList.transposeon arrays resp. lists with differently long arrays/lists inside, an exception is thrown. But this exception does not help detect the problem in a, say, long pipeline.Repro steps
Expected behavior
Throws an exception that tells the user that array/list elements are varying in length.
Actual behavior
Throws following exceptions:
System.ArgumentException: The input list was empty. (Parameter 'list'), resp.System.IndexOutOfRangeException: Index was outside the bounds of the array..