Fizz Buzz Through Monoids(entropicthoughts.com)5 points·by ibobev·2개월 전·1 commentsentropicthoughts.comFizz Buzz Through Monoidshttps://entropicthoughts.com/fizzbuzz-through-monoids2 commentsPost comment[–]tromp·2개월 전reply> 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·2개월 전
> "fizz" <$ guard (rem i 3 == 0)
I prefer the more transparent