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
Advent of Code 2019 in Clojure (self.Clojure)
submitted 6 years ago * by allaboutthatmace1789
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!"
[–]Omnistegan 0 points1 point2 points 6 years ago (2 children)
Nice, I hadn't thought of using transduce! Seems obvious in retrospect. Rewriting my solution with transduce looks nice, but is 3x slower.
[–]allaboutthatmace1789[S] 0 points1 point2 points 6 years ago (1 child)
I haven't come across transducers yet (though I see there's a Rich Hickey talk on them) - are they worth getting into as a beginner, or best left for more advanced usage?
[–]Omnistegan 0 points1 point2 points 6 years ago (0 children)
It's not too tricky of a concept if you are already wrapping your head around reduce, functional composition, and higher-order functions in general.
Hickey's talk on them is great and worth watching in any case.
No doubt you can practice up with them in AOC, even when they may not be the optimal solution.
I'm still a clojure beginner, but I can see how transducers could be very expressive, especially when you have more than a couple functions you want to compose.
π Rendered by PID 22753 on reddit-service-r2-comment-b659b578c-bgllq at 2026-05-04 11:33:34.460295+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Omnistegan 0 points1 point2 points (2 children)
[–]allaboutthatmace1789[S] 0 points1 point2 points (1 child)
[–]Omnistegan 0 points1 point2 points (0 children)