News for hackers. Stuff that matters.
Re:Why We Chose Typescript by igouy on Saturday July 01, 2017 @12:40PM (#14677786)

    let rec factorial n = 
        if n = 0 || n = 1 then 1 
        else n * factorial (n - 1)
F#
Re:Why We Chose Typescript by mrkgnao on Saturday July 01, 2017 @12:50PM (#14677820)
Haskell:

  factorial n =
    if n < 2 
      then 1
      else n * factorial (n - 1)
I think the OCaml version will look almost exactly like the F# one.