lispdoc - results for pop |
(pop place &environment env) | Function: The argument is a location holding a list. Pops one item off the front of the list and returns it.
|
Example:(defun dequeue (queue) (pop (car queue))) | Mentioned in: CLtL2 - 15.2. Lists CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 7.2. Generalized Variables HyperSpec - Macro POP On Lisp - New Utilities (Computation at Compile-Time) PCL - good object oriented design PCL - other ways to modify places PCL - removing duplication and winning big Successful Lisp - closures |
(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 |
(pprint-pop) | Function: Return the next element from LIST argument to the closest enclosing use of PPRINT-LOGICAL-BLOCK, automatically handling *PRINT-LENGTH* and *PRINT-CIRCLE*. Can only be used inside PPRINT-LOGICAL-BLOCK. If the LIST argument to PPRINT-LOGICAL-BLOCK was NIL, then nothing is popped, but the *PRINT-LENGTH* testing still happens.
|
| Mentioned in: CLtL2 - 27.3. Dynamic Control of the Arrangement of Output CLtL2 - 27.4. Format Directive Interface HyperSpec - Local Macro PPRINT-POP | |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| By Bill Moorier |