I saw the usage of &
in Clojure function signature like this (http://clojure.github.io/core.async/#clojure.core.async/thread):
(thread & body)
And this:
(doseq seq-exprs & body)
Does that means the function/macro can accept a list as variable? I also find *
is often used to mean multiple parameters can be accepted, like this:
(do exprs*)
Does anyone have ideas about the difference between &
and *
in function/macro signature? Is there any documentation to explain this syntax?
...rest
parameter in JavaScript? developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/… – Solicitude