Função de comprimentoLength function
Espaço de nome: Microsoft.Quantum.CoreNamespace: Microsoft.Quantum.Core
Pacote: Microsoft.Quantum.QSharp.CorePackage: Microsoft.Quantum.QSharp.Core
Devolve o número de elementos numa matriz.Returns the number of elements in an array.
function Length<'T> (a : 'T[]) : Int
EntradaInput
a: 'T].a : 'T[]
Matriz de entrada.Input array.
Saída : IntOutput : Int
A contagem total de elementos numa matriz.The total count of elements in an array.