Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Latest commit

 

History

History
79 lines (52 loc) · 1.99 KB

seq.concat['collection,'t]-function-[fsharp].md

File metadata and controls

79 lines (52 loc) · 1.99 KB
title description keywords author manager ms.date ms.topic ms.prod ms.technology ms.assetid
Seq.concat<'Collection,'T> Function (F#)
Seq.concat<'Collection,'T> Function (F#)
visual f#, f#, functional programming
dend
danielfe
05/16/2016
language-reference
visual-studio-dev14
devlang-fsharp
d73faed0-aa17-4b89-989c-6b427b28fd69

Seq.concat<'Collection,'T> Function (F#)

Combines the given enumeration-of-enumerations as a single concatenated enumeration.

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

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

Syntax

// Signature:
Seq.concat : seq<'Collection> -> seq<'T> (requires 'Collection :> seq<'T>)

// Usage:
Seq.concat sources

Parameters

sources Type: seq<'Collection>

The input enumeration-of-enumerations.

Exceptions

Exception Condition
ArgumentNullException Thrown when the input sequence is null

Return Value

The result sequence.

Remarks

The returned sequence may be passed between threads safely. However, individual IEnumerator values generated from the returned sequence should not be accessed concurrently.

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

Example

The following code shows how to use Seq.concat.

[!code-fsharpMain]

Output

1 2 3 4 5 6 7 8 9 10 
1 2 3 4 5 6 7 8 9

Platforms

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

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

Collections.Seq Module (F#)

Microsoft.FSharp.Collections Namespace (F#)