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.



The following program illustrates the concept −

On compiling and running, we get the below output

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

F Sharp (programming language) Topics