Changes for clojure.core/list*

Dmitry Kakurin on Wed, 25 May 2011
;; `list*` function:
user=> (list* 1 [2 3])
(1 2 3)
user=> (list* 1 2 [3 4])
(1 2 3 4)

;; compared to regular `list` function:
user=> (list 1 [2 3])
(1 [2 3])
user=> (list 1 2 [3 4])
(1 2 [3 4])

;; Corner cases:
user=> (list* nil [1 2])
(nil 1 2)
user=> (list* 1 nil)
(1)
user=> (list* () [1 2])
(() 1 2)
user=> (list* 1 ())
(1)
zkim on Sun, 26 Sep 2010
;; `list*` function:
user=> (list* 1 [2 3])
(1 2 3)
user=> (list* 1 2 [3 4])
(1 2 3 4)


;; compared to regular `list` function:
user=> (list 1 [2 3])
(1 [2 3])
user=> (list 1 2 [3 4])
(1 2 [3 4])

;; Corner cases:
user=> (list* nil [1 2])
(nil 1 2)
user=> (list* 1 nil)
(1)
user=> (list* () [1 2])
(() 1 2)
user=> (list* 1 ())
(1)
Dmitry Kakurin on Sun, 01 Aug 2010
**list*** function:
user=> (list* 1 [2 3])
(1 2 3)
user=> (list* 1 2 [3 4])
(1 2 3 4)


compared to regular **list** function:
user=> (list 1 [2 3])
(1 [2 3])
user=> (list 1 2 [3 4])
(1 2 [3 4])

Corner cases:

user=> (list* nil [1 2])
(nil 1 2)
user=> (list* 1 nil)
(1)
user=> (list* () [1 2])
(() 1 2)
user=> (list* 1 ())
(1)
Dmitry Kakurin on Sun, 01 Aug 2010
**list*** function:

user=> (list* 1 [2 3])
(1 2 3)
user=> (list* 1 2 [3 4])
(1 2 3 4)


compared to regular **list** function:

user=> (list 1 [2 3])
(1 [2 3])
user=> (list 1 2 [3 4])
(1 2 [3 4])