I am making my way through labrepl, and I saw the code that follows this template:
;; Pattern (apply
This is similar to this pattern:
Are these patterns equivalent? If not, what's the difference and when will you use one over the other?
I took the previous template from the step function in the labrepl laboratory:
(defn step "Advance the automation by one step, updating all cells." [board] (doall (map (fn [window] (apply #(apply map brians-brain-rules %&) (doall (map torus-window window)))) (torus-window board))))
Update: I added a specific example of each template to make the question clearer.
source share