fsharp // Repetition via ranging over a Sequence type
for i in {10 .. -1 .. 1} do printf "%d .. " i done ; printfn "Liftoff!"
#light
open System
// Repetition via ranging over a Sequence type
for i in {10 .. -1 .. 1} do printf "%d .. " i done ; printfn "Liftoff!"
// Equivalent to above examples:
//
// Seq.iter (fun i -> printf "%d .. " i) {10 .. -1 .. 1} ; printfn "Liftoff!"
//
// {10 .. -1 .. 1} |> Seq.iter (fun i -> printf "%d .. " i) ; printfn "Liftoff!"