This may be more about functional programming in general, rather than clojure specific. However, since I mainly use clojure for learning functional programming, I would like to discuss it here.
Basically, I can think of the following 2 ways of doing abstraction. I would like to hear some comments or feedback from others. Which way do you think is better? Does this issue even matter? Or there are better alternative ways? Thanks. (defn abstract-function [f x y] (body....) (f x y) (body....)) (defn concrete-function [x y] (abstract-function a-fun x y)) -------------------------------------------------------------- (defn abstract-function [f] (fn [x y] (body....) (f x y) (body....))) (def concrete-function (abstract-function a-fun)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en