• + 1 comment

    I'm learning F# coming from TS and C#

    what about this 2 liner? IHMO the beauty of thinking functional is not thinking about for loops but in term of sequences

    open System
    
    let n = Console.ReadLine() |> int
    seq { 1 .. n } |> Seq.iter (fun _ -> Console.WriteLine("Hello World") )