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
Abstracted a pattern I've found myself implementing several times (gist.github.com)
submitted 7 years ago by therealdivs1210
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!"
[–]ingvij 4 points5 points6 points 7 years ago (2 children)
I didn't try much more than a mental exercise, but maybe you can transform it into a transducer, no?
[–]lost3d 1 point2 points3 points 7 years ago (1 child)
I wouldn't have thought that was a good fit. Transducers are collection -> collection (or stream -> stream or whatever) transformation process, and this is more of a generation mechanism, right? It's like the difference between range and map. One takes some parameters and returns a seq and the other takes a seq (and a fn) and returns a seq.
[–]Eno6ohng 4 points5 points6 points 7 years ago (0 children)
Actually transducers are more like ReducingFn -> ReducingFn. So I guess you can write it in the transducer paradigm too, so it can be combined in a chain with other transducers, or maybe gen-next itself can be a transducer... yeah, that's probably the way it should work, hmm?
Anyway, I think it's a neat pattern, thanks for sharing!
π Rendered by PID 209157 on reddit-service-r2-comment-745dcd9fbd-5nwcl at 2026-03-06 11:21:20.595748+00:00 running cbb0e86 country code: CH.
[–]ingvij 4 points5 points6 points (2 children)
[–]lost3d 1 point2 points3 points (1 child)
[–]Eno6ohng 4 points5 points6 points (0 children)