push-acons |
| item value place
| [Macro] |
Purpose
Add a new item value cons to an
association list stored in place.
Package :gbbopen-tools
Module :gbbopen-tools
Arguments and values
item | An object | |
value | An object | |
place | A form which is suitable for use as a generalized reference | |
new-place-value | An association list |
Returns
An association list (the new value of
place).
See also
pushnew-acons
pushnew/incf-acons
Examples
> (setf alist nil) nil > (push-acons 'x 1 alist) ((x . 1)) > (push-acons 'y 2 alist) ((y . 2) (x . 1)) > alist ((y . 2) (x . 1)) >
The GBBopen Project
push-acons |