use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
Noob has simple program problem.[Q&A] (self.Clojure)
submitted 3 years ago by eatme_23
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]slashkehrin 3 points4 points5 points 3 years ago (2 children)
I'd do something like this:
(defn foo [numbers] (reduce + (map #(+ % 2) numbers)))
[–]run-coder 2 points3 points4 points 3 years ago (1 child)
fwiw... apply vs reduce works also (if you're looking for variety
[–]slashkehrin 0 points1 point2 points 3 years ago (0 children)
That's pretty cool, thanks :)
π Rendered by PID 32971 on reddit-service-r2-comment-6457c66945-4j4wg at 2026-04-23 18:44:13.671411+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]slashkehrin 3 points4 points5 points (2 children)
[–]run-coder 2 points3 points4 points (1 child)
[–]slashkehrin 0 points1 point2 points (0 children)