Fizz Buzz Through Monoids(entropicthoughts.com)5 points·by ibobev·hace 2 meses·1 commentsentropicthoughts.comFizz Buzz Through Monoidshttps://entropicthoughts.com/fizzbuzz-through-monoids2 commentsPost comment[–]tromp·hace 2 mesesreply> import Control.Monad (guard)> "fizz" <$ guard (rem i 3 == 0)I prefer the more transparent if i `mod` 3 == 0 then Just "fizz" else Nothing[+]hieu_dev·hace 2 meses
> "fizz" <$ guard (rem i 3 == 0)
I prefer the more transparent