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.
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.transpose
orJaggedList.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
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.
.