This is what Rich Hickey said in one of the blog posts but I don\'t understand the motivation in using apply. Please help.
A big difference between Clojur
apply basically unwraps a sequence and applies the function to them as individual arguments.
apply
Here is an example:
(apply + [1 2 3 4 5])
That returns 15. It basically expands to (+ 1 2 3 4 5), instead of (+ [1 2 3 4 5]).
(+ 1 2 3 4 5)
(+ [1 2 3 4 5])