Sort by

recency

|

169 Discussions

|

  • + 0 comments

    Scala

    def f(n: Int): Unit = {
      if (n > 0) {
        println("Hello World")
        f(n - 1)      
      }
    }
    
  • + 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") )
    
  • + 0 comments

    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.

  • + 0 comments

    I've implemented this coding for my webpage, and while I appreciate its features, I've encountered a problem. I would greatly appreciate any assistance or guidance to resolve the issue. Your help would be invaluable in ensuring the smooth functionality of my website. Thank you in advance for your support!

  • + 1 comment

    OCaml Solution :- let rec print n = if (n > 0) then begin print_endline "Hello World"; print (n - 1) end;;

    let () = let n = read_int () in print n;;