Length function

Namespace: Microsoft.Quantum.Core

Package: Microsoft.Quantum.QSharp.Core

Returns the number of elements in an array.

function Length<'T> (a : 'T[]) : Int

Input

a : 'T[]

Input array.

Output : Int

The total count of elements in an array.

Type Parameters

'T