lispdoc - results for vector-stream

flexi-streams:vector-stream
Type: A VECTOR-STREAM is a mixin for IN-MEMORY streams where the underlying sequence is a vector.
  
(vector-push new-el array)
Function: Attempt to set the element of ARRAY designated by its fill pointer to NEW-EL, and increment the fill pointer by one. If the fill pointer is too large, NIL is returned, otherwise the index of the pushed element is returned.
Example:
(defun leave (n)
  (let ((s (gethash n harbor)))
    (remhash n harbor)
    (vector-push s pool)))
Mentioned in:
CLtL2 - 17.5. Fill Pointers
CLtL2 - 21.2. Creating New Streams
HyperSpec - Function VECTOR-PUSH, VECTOR-PUSH-EXTEND
PCL - destructive operations
PCL - hash table iteration
PCL - vectors
(vector-pop array)
Function: Decrease the fill pointer by 1 and return the element pointed to by the new fill pointer.
Example:
(defun undo-bindings! (old-trail)
  "Undo all bindings back to a given point in the trail."
  (loop until (= (fill-pointer *trail*)
                 old-trail)
        do (setf (var-binding
                  (vector-pop *trail*))
                   unbound)))
Mentioned in:
CLtL2 - 17.5. Fill Pointers
HyperSpec - Function VECTOR-POP
PCL - destructive operations
PCL - hash table iteration
PCL - vectors