News for hackers. Stuff that matters.
Re:Two Years with Rust by TazeTSchnitzel on Monday March 23, 2020 @02:19PM (#22666974)
Both are possible in Haskell:

  factorial 0 = 1
  factorial n = n * factorial (n - 1)

  // or:

  factorial n = case n of
    0 -> 1
    n -> n * factorial (n - 1)

There are no comments on this comment yet.