We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Hello World N Times
Hello World N Times
Sort by
recency
|
171 Discussions
|
Please Login in order to post a comment
OCaml: let rec printHWn (n : int) : _ = match n with | 0 -> () | _ -> let _ = print_string "Hello World\n" in printHWn (n - 1)
let () = let n = read_int() in printHWn n
Nice work! You've captured functional well by using sequences instead of traditional loops. The
Seq.iter
is a clean and efficient approach. This mindset in software development emphasizes immutability and higher-order functions, which are core strengths of F# over imperative paradigms like TS and C#. Keep exploring!Scala
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
thanks for https://www.facebook.com/profile.php?id=61564006247185
Carbon steel flanges serve as important connectors in industries by joining pipes, valves, and equipment. These flanges are primarily made from carbon steel, which is a cost-effective material with good strength and durability, making it a common choice for linking pipes in industrial systems.