Communities for your favorite technologies. Explore all Collectives
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Is there any special form or function in Clojure which is an equivalent of:
(defn foo [ob col f] (reduce #(f %1 %2) ob col))
Basically something like doto but working on Clojure data-structures not on mutable java objects.
reduce
Your code looks fine, but it may be simplified to:
(reduce f ob coll)
Add a comment
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
reducewith the arguments in a different order.