Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
FizzBuzz in Haskell
ptrelford
Oct 7th, 2014
729
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Haskell
0.11 KB
| None
|
0
0
raw
download
clone
embed
print
report
map
(
\
x
->
case
(
mod
x
3
,
mod
x
5
)
of
(
0
,
0
)
->
"FizzBuzz"
;
(
0
,_
)
->
"Fizz"
;
(
_,
0
)
->
"Buzz"
; _
->
show
x
)
[
1
..
100
]
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
1 hour ago | 62.84 KB
Untitled
3 hours ago | 62.83 KB
Untitled
5 hours ago | 62.83 KB
Untitled
7 hours ago | 62.97 KB
Untitled
9 hours ago | 62.69 KB
Stationeers - Starter Base: Power Systems Con...
9 hours ago | 1.76 KB
Halo First Strike 33
11 hours ago | 1.32 KB
Halo First Strike 32
11 hours ago | 1.06 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!