• (list & items)
Creates a new list containing the items.

2 Examples top

  • user=> (list 'a 'b 'c 'd 'e 'f 'g)
    (a b c d e f g)
    user=> (list 1 2 3)
    (1 2 3)
  • user=> (let [m {:1 1 :2 2 :3 3 :4 4}] (map list (keys m) (vals m)))
    ((:1 1) (:2 2) (:3 3) (:4 4))
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/core.clj:16 top

(def
 ^{:arglists '([& items])
   :doc "Creates a new list containing the items."
   :added "1.0"}
  list (. clojure.lang.PersistentList creator))
Vars in clojure.core/list:
Used in 0 other vars

Comments top

No comments for list. Log in to add a comment.