Array.append<'T> Function
TOC
Collapse the table of content
Expand the table of content

Array.append<'T> Function (F#)

 

Creates an array that contains the elements of one array followed by the elements of another array.

Namespace/Module Path: Microsoft.FSharp.Collections.Array

Assembly: FSharp.Core (in FSharp.Core.dll)

// Signature:
Array.append : 'T [] -> 'T [] -> 'T []

// Usage:
Array.append array1 array2

array1

Type: 'T []

The first input array.

array2

Type: 'T []

The second input array.

The resulting array.

This function is named Append in compiled assemblies. If you are accessing the function from a language other than F#, or through reflection, use this name.

Example

The following example demonstrates the use of Array.append.

printfn "%A" (Array.append [| 1; 2; 3|] [| 4; 5; 6|])
[|1; 2; 3; 4; 5; 6|]

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

Show:
© 2016 Microsoft