isRectangular

fun <T> isRectangular(array2D: Array<Array<T>>): Boolean

A 2-D array is rectangular if all rows have the same number of elements (columns).

Return

true if the array is rectangular

Parameters

array2D

the array to check


The collection of arrays is considered rectangular if all arrays in the collection have the same number of elements.

Return

true if the array is rectangular

Parameters

collection

the array to check


An array is rectangular if all rows have the same number of elements (columns).

Return

true if the array is rectangular

Parameters

array2D

the array to check