CLCS
Function

vectorp

vectorp objectgeneralized-boolean

Arguments and Values

objectan object.
generalized-booleana generalized boolean.

Description

Returns true if object is of type vector; otherwise, returns false.

Examples

 (vectorp "aaaaaa") ⇒  true
 (vectorp (make-array 6 :fill-pointer t)) ⇒  true
 (vectorp (make-array '(2 3 4))) ⇒  false
 (vectorp #*11) ⇒  true
 (vectorp #b11) ⇒  false

Notes

 (vectorp object) ≡ (typep object 'vector)