I came across this elegant implementation of the Pascal triangle, which uses a lazy sequence.
(def pascal (iterate (fn [prev-row] (->> (concat [[(first prev-row)]] (partition 2 1 prev-row) [[(last prev-row)]]) (map (partial apply +) ,,,))) [1M]))
Can someone help me understand ,,, in this context? I tried using macroexpand , but that did not lead me far. I also know that this is not required, but I want to know what ,,, means.
functional-programming clojure
darth10
source share