News for hackers. Stuff that matters.
Re:Happy Birthday, Ruby by masklinn on Friday January 11, 2019 @06:17AM (#18882636)
I've always loved the case analysis of a case/match:

  [case (n `rem` 3 == 0, n `rem` 5 == 0) of
     (True, False) -> "Fizz"
     (False, True) -> "Buzz"
     (True, True) -> "FizzBuzz"
     (False, False) -> (show n)
  | n <- [1..100]
  ]

There are no comments on this comment yet.