% Accessor FILL-POINTER
Accessor FILL-POINTER
fill-pointer
vector => fill-pointer
(setf
(fill-pointer
vector) new-fill-pointer)
vector - fill-pointerを持ったvector
fill-pointer, new-fill-pointer - vectorの有効なfill-pointer
vectorのfill-pointerにアクセスします
(setq a (make-array 8 :fill-pointer 4)) => #(NIL NIL NIL NIL)
(fill-pointer a) => 4
(dotimes (i (length a)) (setf (aref a i) (* i i))) => NIL
a => #(0 1 4 9)
(setf (fill-pointer a) 3) => 3
(fill-pointer a) => 3
a => #(0 1 4)
(setf (fill-pointer a) 8) => 8
a => #(0 1 4 9 NIL NIL NIL NIL)
なし。
なし。
vectorがfill-pointerを持つvector
では無かったら、
型type-error
のエラーが発生します。
vector
からfill-pointerを削除する操作はありません。