News for hackers. Stuff that matters.
Re:Overthinking Fizzbuzz with Monoids by laylomo on Wednesday September 13, 2017 @06:28PM (#15243332)
Nice, reminds me of the equivalent OCaml implementation:

    let fizzbuzz n =
      match n mod 3, n mod 5 with
      | 0, 0 -> "fizzbuzz"
      | 0, _ -> "fizz"
      | _, 0 -> "buzz"
      | _ -> string_of_int n

There are no comments on this comment yet.