Rotziiwahl on Nostr: started "learn you a haskell for great good" and, voila, fizzbuzz in haskell: ``` ...
started "learn you a haskell for great good" and, voila, fizzbuzz in haskell:
```
fizzBuzz xs = [ if x `mod` 15 == 0 then "FizzBuzz" else if x `mod` 5 == 0 then "Buzz" else if x `mod` 3 == 0 then "Fizz" else show x | x <- xs]
```
Published at
2023-11-09 03:50:53Event JSON
{
"id": "417fb3fcf1ad60eb4e5f893267a4c404f87be00fc40c89cfe1ac54be695a7383",
"pubkey": "062061d3fbb03f79dda371adc7059662efdd797bf89607edf7967f969ff8084b",
"created_at": 1699501853,
"kind": 1,
"tags": [
[
"proxy",
"https://furry.engineer/users/draygon/statuses/111378553474289362",
"activitypub"
]
],
"content": "started \"learn you a haskell for great good\" and, voila, fizzbuzz in haskell:\n```\nfizzBuzz xs = [ if x `mod` 15 == 0 then \"FizzBuzz\" else if x `mod` 5 == 0 then \"Buzz\" else if x `mod` 3 == 0 then \"Fizz\" else show x | x \u003c- xs] \n```",
"sig": "5a3f69b138c8183bf7f7ddf9f30479eb4916e975f33b8e2468422683c61663acc5a0146e08fed44dae49661b834090982ee6487f6faaea1a2380e9755c6f7da0"
}