You are viewing a single comment's thread. Return to all comments →
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") )
Seems like cookies are disabled on this browser, please enable them to open this website
Hello World N Times
You are viewing a single comment's thread. Return to all comments →
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