Next: Introduction, Previous: (dir), Up: (dir) [Contents][Index]
This is the trivial-do Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Tue Dec 22 15:18:22 2020 GMT+0.
• Introduction | What trivial-do is all about | |
• Systems | The systems documentation | |
• Modules | The modules documentation | |
• Files | The files documentation | |
• Packages | The packages documentation | |
• Definitions | The symbols documentation | |
• Indexes | Concepts, functions, variables and data types |
Additional dolist style macros for Common Lisp. Currently provides doalist
, dohash
, dolist*
, doplist
, doseq
and doseq*
.
Iterates over the key value pairs of an alist.
(doalist (key value alist &optional return-form)
(format t "key: ~A, value: ~A~%" key value))
Iterates over the key value pairs of a hash table.
(dohash (key value hash-table &optional return-form)
(format t "key: ~A, value: ~A~%" key value))
Iterates over a list with a position variable tracking the current index.
(dolist* (position value list &optional return-form)
(format t "position: ~A, value: ~A~%" position value))
Iterates over the key value pairs of an plist.
(doplist (key value plist &optional return-form)
(format t "key: ~A, value: ~A~%" key value))
Iterates over the values of a sequence.
(doseq (value sequence &optional return-form)
(format t "value: ~A~%" position value))
Iterates over a sequence with a position variable tracking the current index.
(doseq* (position value sequence &optional return-form)
(format t "position: ~A, value: ~A~%" position value))
Next: Modules, Previous: Introduction, Up: Top [Contents][Index]
The main system appears first, followed by any subsystem dependency.
• The trivial-do system |
Tarn W. Burton
MIT
Looping extensions that follow the style of the core DO functions.
0.1
trivial-do.asd (file)
src (module)
Modules are listed depth-first from the system components tree.
• The trivial-do/src module |
trivial-do (system)
src/
Files are sorted by type and then listed depth-first from the systems components trees.
• Lisp files |
Next: The trivial-do/src/packages․lisp file, Previous: Lisp files, Up: Lisp files [Contents][Index]
trivial-do.asd
trivial-do (system)
Next: The trivial-do/src/doalist․lisp file, Previous: The trivial-do․asd file, Up: Lisp files [Contents][Index]
src (module)
src/packages.lisp
Next: The trivial-do/src/dohash․lisp file, Previous: The trivial-do/src/packages․lisp file, Up: Lisp files [Contents][Index]
packages.lisp (file)
src (module)
src/doalist.lisp
doalist (macro)
Next: The trivial-do/src/dolist․lisp file, Previous: The trivial-do/src/doalist․lisp file, Up: Lisp files [Contents][Index]
doalist.lisp (file)
src (module)
src/dohash.lisp
dohash (macro)
Next: The trivial-do/src/doplist․lisp file, Previous: The trivial-do/src/dohash․lisp file, Up: Lisp files [Contents][Index]
dohash.lisp (file)
src (module)
src/dolist.lisp
dolist* (macro)
Next: The trivial-do/src/doseq․lisp file, Previous: The trivial-do/src/dolist․lisp file, Up: Lisp files [Contents][Index]
dolist.lisp (file)
src (module)
src/doplist.lisp
doplist (macro)
Previous: The trivial-do/src/doplist․lisp file, Up: Lisp files [Contents][Index]
doplist.lisp (file)
src (module)
src/doseq.lisp
Next: Definitions, Previous: Files, Up: Top [Contents][Index]
Packages are listed by definition order.
• The trivial-do package |
packages.lisp (file)
common-lisp
Definitions are sorted by export status, category, package, and then by lexicographic order.
• Exported definitions |
Previous: Definitions, Up: Definitions [Contents][Index]
• Exported macros |
Previous: Exported definitions, Up: Exported definitions [Contents][Index]
doalist iterates over the elements of an alist and binds key-var to the car of each element, value-var to the cdr of each element and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
doalist.lisp (file)
dohash iterates over the elements of an hash table and binds key-var to the key, value-var to the associated value and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
dohash.lisp (file)
dolist* iterates over the elements of an list and binds position-var to the index of each element, value-var to each element and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
dolist.lisp (file)
doplist iterates over the elements of an plist and binds key-var to the key, value-var to the associated value and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
doplist.lisp (file)
doseq iterates over the elements of an sequence and binds value-var to successive values and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
doseq.lisp (file)
doseq* iterates over the elements of an sequence and binds position-var to the index of each element, value-var to each element and then evaluates body as a tagbody that can include declarations. Finally the result-form is returned after the iteration completes.
doseq.lisp (file)
Previous: Definitions, Up: Top [Contents][Index]
• Concept index | ||
• Function index | ||
• Variable index | ||
• Data type index |
Next: Function index, Previous: Indexes, Up: Indexes [Contents][Index]
Jump to: | F L M T |
---|
Jump to: | F L M T |
---|
Next: Variable index, Previous: Concept index, Up: Indexes [Contents][Index]
Jump to: | D M |
---|
Jump to: | D M |
---|
Next: Data type index, Previous: Function index, Up: Indexes [Contents][Index]
Previous: Variable index, Up: Indexes [Contents][Index]
Jump to: | P S T |
---|
Index Entry | Section | ||
---|---|---|---|
| |||
P | |||
Package, trivial-do : | The trivial-do package | ||
| |||
S | |||
System, trivial-do : | The trivial-do system | ||
| |||
T | |||
trivial-do : | The trivial-do system | ||
trivial-do : | The trivial-do package | ||
|
Jump to: | P S T |
---|