Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
QueryBuilder.For<'T,'Q,'Result,'Q2> Method (F#)
Collapse the table of content
Expand the table of content

QueryBuilder.For<'T,'Q,'Result,'Q2> Method (F#)

A method used to support the F# query syntax. Projects each element of a sequence to another sequence and combines the resulting sequences into one sequence.

Namespace/Module Path: Microsoft.FSharp.Linq

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

// Signature:
member this.For : QuerySource<'T,'Q> * ('T -> QuerySource<'Result,'Q2>) -> QuerySource<'Result,'Q>

// Usage:
queryBuilder.For (source, body)


Type: QuerySource<'T,'Q>

The input query.


Type: 'T -> QuerySource<'Result,'Q2>

A function that represents the body of the for loop in a query expression.

The result sequence.

This method implements the for loop syntax for query expressions.

For more information and examples, see Query Expressions (F#).

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

F# Core Library Versions

Supported in: 4.0, Portable

© 2015 Microsoft