共用方式為


Length 函式

完整名稱:Std.Core.Length

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

總結

傳回輸入陣列中的項目數 a

輸入

一個

輸入陣列。

輸出

輸入陣列中的元素總數 a

Message($"{ Length([0, 0, 0]) }"); // Prints 3