Charles Fleck <········@ludwig.cs.indiana.edu> writes:
> is there a way for me to extend bit vectors? for example, i'm trying to
> turn #*1001 into #*10010. is it possible for me to push those values
> on?
Just initialize your vector adjustable:
(defparameter bv (make-array (list 8) :element-type 'bit :adjustable t
:fill-pointer 0))
(dolist (bit '(1 0 1 0 0 0 1 0 1 0 0 1 1 1 0 0 1 1 1 1 0 1 0))
(vector-push-extend bit bv))
bv
==> #*10100010100111001111010
--
__Pascal Bourguignon__ http://www.informatimago.com/
The world will now reboot; don't bother saving your artefacts.