Partilhar via


Função IsRectangularArray

Nome totalmente qualificado: Std.Arrays.IsRectangularArray

function IsRectangularArray<'T>(array : 'T[][]) : Bool

Resumo

Retorna se uma matriz de 2 dimensões tem uma forma retangular

Parâmetros de tipo

«O

O tipo de cada elemento de array.

Entrada

matriz

Uma matriz de elementos de 2 dimensões.

Realização

true se a matriz for retangular, false de outra forma.

Exemplo

IsRectangularArray([[1, 2], [3, 4]]);       // true
IsRectangularArray([[1, 2, 3], [4, 5, 6]]); // true
IsRectangularArray([[1, 2], [3, 4, 5]]);    // false

Ver também

  • Microsoft.Quantum.Arrays.IsSquareArray