Why does concat on vectors evaluate to a list?

Posted by StackedCrooked on Stack Overflow See other posts from Stack Overflow or by StackedCrooked
Published on 2010-04-26T00:23:05Z Indexed on 2010/04/26 0:33 UTC
Read the original article Hit count: 205

Filed under:

Calling concat on vectors returns a list. Being a total noob I would expect that the result would also be a vector. Why the conversion to list?

Example:

user=> (concat [1 2] [3 4] [5 6])
(1 2 3 4 5 6)
; Why not: [1 2 3 4 5 6] ?

© Stack Overflow or respective owner

Related posts about clojure