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 |
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)
// Signature:
Seq.concat : seq<'Collection> -> seq<'T> (requires 'Collection :> seq<'T>)
// Usage:
Seq.concat sources
sources Type: seq<'Collection>
The input enumeration-of-enumerations.
Exception | Condition |
---|---|
ArgumentNullException | Thrown when the input sequence is null |
The result sequence.
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.
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
Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2
F# Core Library Versions
Supported in: 2.0, 4.0, Portable