Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Overkill with for
(for [x [2 4 3 6]]
(if (odd? x)
"foo"
x))
(map #(if (odd? %)
"foo"
%) [2 4 3 6])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.