Vectors of Bits
(setq vector (make-array 1024 :element-type ‘bit
:initial-element 0))
;; Access and modify as any vector or array
(setf (aref vector 0) 1)
;; But elements must be either zero or one
(setf (aref vector 0) 2) ; ERROR
Previous slide
Next slide
Back to first slide
View graphic version