Tutorial by Examples

In sequence workflows, yield adds a single item into the sequence being built. (In monadic terminology, it is return.) > seq { yield 1; yield 2; yield 3 } val it: seq<int> = seq [1; 2; 3] > let homogenousTup2ToSeq (a, b) = seq { yield a; yield b } > tup2Seq ("foo", &qu...

for

for sequence expression is designed to look just like its more famous cousin, the imperative for-loop. It "loops" through a sequence and evaluates the body of each iteration into the sequence it is generating. Just like everything sequence related, it is NOT mutable. > let oneToTen = s...

Page 1 of 1