Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
FizzBuzz in Clojure with cond
ptrelford
Sep 25th, 2014
275
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Clojure
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
(
map
(
fn
[
x
]
(
let
[
a
(
mod x
3
)
b
(
mod x
5
)
]
(
cond
(
and
(
=
a
0
)
(
=
b
0
)
)
(
str
"FizzBuzz"
)
(
=
a
0
)
(
str
"Fizz"
)
(
=
b
0
)
(
str
"Buzz"
)
:
else
(
str
x
)
)
)
)
(
range
1
100
)
)
Add Comment
Please,
Sign In
to add comment
Public Pastes
Keyboard Mnemonics and Accelerators
Java | 1 min ago | 1.57 KB
BTC Wallet Credentials have been reset
GetText | 2 min ago | 0.24 KB
Killin_Streaks's Data
JSON | 10 min ago | 13.20 KB
SirLicker's Data
JSON | 15 min ago | 13.18 KB
JCheckBoxMenuItem and JRadioButtonMenuItem
Java | 21 min ago | 1.73 KB
sync csgo cfg's across all accounts.
Python | 26 min ago | 0.72 KB
JRadio Button with Java Swing
Java | 28 min ago | 1.29 KB
JCheckBox with Java Swing
Java | 32 min ago | 0.96 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!