Name

conj

Usage

builtin-function

Syntax

(conj seq &rest items)

Description

Adds each item to the begin or end of seq which must be a list or a vector.

user 1 > (def a (list 1 2 3))
it: a
user 2 > a
it: (1 2 3)
user 3 > (conj a 4)
it: (4 1 2 3)
user 4 > a
it: (1 2 3)

user 1 > (def a (vector 1 2 3))
it: a
user 2 > a
it: #v(1 2 3)
user 3 > (conj a 4 5)
it: #v(1 2 3 4 5)
user 4 > a
it: #v(1 2 3 4 5)