Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
FizzBuzz in Clojure with cond
ptrelford
Sep 25th, 2014
352
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
Review Otet Markets
PHP | 8 sec ago | 3.09 KB
Review Otet Markets
PHP | 15 sec ago | 2.86 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 5 min ago | 0.39 KB
cypress testing deep
JavaScript | 12 min ago | 0.43 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 15 min ago | 0.38 KB
personal accounting
C# | 16 min ago | 6.30 KB
data925
JSON | 20 min ago | 0.64 KB
use in google colab python snowybot
Python | 22 min ago | 4.14 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!