(list* args)
(list* a args)
(list* a b args)
(list* a b c args)
(list* a b c d & more)
Creates a new list containing the items prepended to the rest, the
last of which will be treated as a sequence.
Source
(defn
list*
"Creates a new list containing the items prepended to the rest, the\n last of which will be treated as a sequence."
([args] (seq args))
([a args] (cons a args))
([a b args] (cons a (cons b args)))
([a b c args] (cons a (cons b (cons c args))))
([a b c d & more] (cons a (cons b (cons c (cons d (spread more)))))))