Hello Team, I am a moderate Clojure user and now I planned to explore more Clojure, I used to write different functions every time where I could write asynchronous functions.
As came from object-oriented background and trying to understand asynchronous functions I took some example on using fn functions ((fn [& nums] (/ (apply + nums) (count nums))) 1 2 3 4) In the above statement, 1 2 3 4 is added after the function defined as input, But in the below function I did not understand how fn behaves, what is the input for a request, Or what is the methodology , Basically I am not understanding the flow, (defn wrap-content-type [handler content-type] (fn [request] (let [response (handler request)] (assoc-in response [:headers "Content-Type"] content-type)))) Can someone help me, please? Thanks, Ganesh N -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/c460dada-9752-4f7f-931d-3766fe64411cn%40googlegroups.com.