News for hackers. Stuff that matters.
Re:Grain: A strongly-typed functional programming language f... by jffry on Sunday April 25, 2021 @08:26AM (#26932204)
Or perhaps a more real-world example ;)

    match (n % 3, n % 5) with:
      (0, 0) => print "FizzBuzz"
      (1, 0) => print "Fizz"
      (0, 1) => print "Buzz"
      (_, _) => print n
Re:Grain: A strongly-typed functional programming language f... by Smaug123 on Sunday April 25, 2021 @12:59PM (#26934269)
By the way, you have a large number of bugs here if you're trying to solve the famous real-world problem. What about 3 or 5 or 9?
Re:Grain: A strongly-typed functional programming language f... by pyrale on Sunday April 25, 2021 @04:07PM (#26936153)
> real-world problem.

I never heard about a real-world problem associated with fizz-buzz, besides teaching children to count. Do you have some documentation about that?

Re:Grain: A strongly-typed functional programming language f... by jffry on Wednesday April 28, 2021 @04:52PM (#26974046)
Any resemblance to a specific real-world problem is purely coincidental ;)