FSharp Loops for...in loop - F Sharp (programming language)

What is F# - for...in loop?

This looping construct is used to iterate over the matches of a pattern in an enumerable collection such as a range expression, sequence, list, array, or other construct that supports enumeration.

Syntax

Example

The following program illustrates the concept −

On compiling and running, we get the below output

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

F Sharp (programming language) Topics