我不明白为什么在对列表执行apply vector
时,不会返回与vector
或[]
相同的集合,尤其是在列表中至少有一个元素是函数的情况下
(= [1 2 3] (apply vector '(1 2 3)))
=> true
(= [int 2 3] (apply vector '(int 2 3)))
=> false
(= [int 2 3] (vector int 2 3))
=> true
(apply vector '(int 2 3))
=> [int 2 3]
Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 1.8.0_91-b14