place-utils
A simple thematic utilities library in Quicklisp.
| Project Type | Library | |
|---|---|---|
| Programming language | Common Lisp | |
| Status | Ready-to-use | |
| License | Public Domain | |
| Library type | Thematic utilities | |
| Project complexity | Simple | |
| Latest release | Version | 0.1 |
| Date | 16 april 2011 | |
|
Quicklisp
(May 2012 dist and later) |
Status | Available |
| Version | Latest | |
External library pages
| Depends on | Depended on by | |
|---|---|---|
| Directly | Nothing | Nothing |
| Indirectly | Nothing | Nothing |
place-utils provides a few utilities relating to setfable places.
setf-expanderlet
Introduce local setf-expanders.
with-resolved-places
Evaluate subforms once, then access repeatedly safely.
updatef
Like setf, except supply update functions (to be called with old values) instead of new values.
bulkf
Flexible mass updating of places.
An update function receives the old values as arguments
and returns the values to write back as multiple values.
funcallf/applyf
Store into a place the result of calling an update function with the old value of the place,
possibly along with additional regular arguments.
cachef
Compute the value of a place only when it's first read.
oldf
Make the storing form of a place return old value(s).
readf
Easily make a place work in non-place contexts.
tracef
Output debug info when a particular place is accessed.