3 ms·
In Clojure, `[1 2 3]` is a vector, which is a distinct data type from a list, which looks like `(1 2 3)`. A vector in Common Lisp is written using `#(1 2 3)`.
by Munksgaard 5y ago
In Clojure, `[1 2 3]` is a vector, which is a distinct data type from a list, which looks like `(1 2 3)`. A vector in Common Lisp is written using `#(1 2 3)`.
Using vectors for function arguments is unique to Clojure, and I'm not entirely sure why they chose to do it that way.
- iLemming 5y ago> Using vectors for function arguments is unique to Clojure, and I'm not entirely sure why they chose to do it that way. Once you understand how destructing works in Clojure, it becomes obvious