In Clojure,
[code="java"]
(apply map + '((1 2 ) (3 4) (5 6)))
[/code]
produce result: code="java" [/code]
Can anyone help me to understand how does it work?
Thank you in advance!
In Clojure,
[code="java"]
(apply map + '((1 2 ) (3 4) (5 6)))
[/code]
produce result: code="java" [/code]
Can anyone help me to understand how does it work?
Thank you in advance!
I belive the expression
[code="clojure"](apply map + '((1 2 ) (3 4) (5 6)))[/code]
evaluates to:
code="clojure"[/code]
instead of (6 9), which is the same with Scheme. What version of Clojure are you using?
The expression is pretty much equivalent to the following:
code="clojure" '(5 6))[/code]
Take a look at [url=http://www.scheme.com/tspl3/control.html#./control:h4]this page[/url], look for the part that explains "map".