Array.concat<'T> 函式 (F#)
建置新陣列,這個陣列包含每個指定之陣列序列的項目。
命名空間/模組路徑: Microsoft.FSharp.Collections.Array
組件:FSharp.Core (在 FSharp.Core.dll 中)
// Signature:
Array.concat : seq<'T []> -> 'T []
// Usage:
Array.concat arrays
參數
傳回值
輸入陣列序列的串連。
備註
這個函式是名為 Concat中 已編譯的組件。 如果從一個語言,F # 以外,或透過反映存取函式使用這個名稱。
範例
以下範例將說明 Array.concat 的用法。
let multiplicationTable max = seq { for i in 1 .. max -> [| for j in 1 .. max -> (i, j, i*j) |] }
printfn "%A" (Array.concat (multiplicationTable 3))
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本資訊
F# 執行階段
支援版本:2.0、4.0
Silverlight
支援版本:3