The trivial-do Reference Manual

Table of Contents

Next: , Previous: , Up: (dir)   [Contents][Index]

The trivial-do Reference Manual

This is the trivial-do Reference Manual, version 0.1, generated automatically by Declt version 3.0 "Montgomery Scott" on Wed Nov 04 15:32:02 2020 GMT+0.


Next: , Previous: , Up: Top   [Contents][Index]

1 Introduction

trivial-do

Additional dolist style macros for Common Lisp. Currently provides doalist, dohash, dolist*, doplist, doseq and doseq*.

doalist

Iterates over the key value pairs of an alist.

(doalist (key value alist &optional return-form)
  (format t "key: ~A, value: ~A~%" key value))

dohash

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))

dolist*

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))

doplist

Iterates over the key value pairs of an plist.

(doplist (key value plist &optional return-form)
  (format t "key: ~A, value: ~A~%" key value))

doseq

Iterates over the values of a sequence.

(doseq (value sequence &optional return-form)
  (format t "value: ~A~%" position value))

doseq*

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: , Previous: , Up: Top   [Contents][Index]

2 Systems

The main system appears first, followed by any subsystem dependency.


Previous: , Up: Systems   [Contents][Index]

2.1 trivial-do

Author

Tarn W. Burton

License

MIT

Description

Looping extensions that follow the style of the core DO functions.

Version

0.1

Source

trivial-do.asd (file)

Component

src (module)


Next: , Previous: , Up: Top   [Contents][Index]

3 Modules

Modules are listed depth-first from the system components tree.


Previous: , Up: Modules   [Contents][Index]

3.1 trivial-do/src

Parent

trivial-do (system)

Location

src/

Components

Next: , Previous: , Up: Top   [Contents][Index]

4 Files

Files are sorted by type and then listed depth-first from the systems components trees.


Previous: , Up: Files   [Contents][Index]

4.1 Lisp


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.1 trivial-do.asd

Location

trivial-do.asd

Systems

trivial-do (system)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.2 trivial-do/src/packages.lisp

Parent

src (module)

Location

src/packages.lisp

Packages

trivial-do


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.3 trivial-do/src/doalist.lisp

Dependency

packages.lisp (file)

Parent

src (module)

Location

src/doalist.lisp

Exported Definitions

doalist (macro)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.4 trivial-do/src/dohash.lisp

Dependency

doalist.lisp (file)

Parent

src (module)

Location

src/dohash.lisp

Exported Definitions

dohash (macro)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.5 trivial-do/src/dolist.lisp

Dependency

dohash.lisp (file)

Parent

src (module)

Location

src/dolist.lisp

Exported Definitions

dolist* (macro)


Next: , Previous: , Up: Lisp files   [Contents][Index]

4.1.6 trivial-do/src/doplist.lisp

Dependency

dolist.lisp (file)

Parent

src (module)

Location

src/doplist.lisp

Exported Definitions

doplist (macro)


Previous: , Up: Lisp files   [Contents][Index]

4.1.7 trivial-do/src/doseq.lisp

Dependency

doplist.lisp (file)

Parent

src (module)

Location

src/doseq.lisp

Exported Definitions

Next: , Previous: , Up: Top   [Contents][Index]

5 Packages

Packages are listed by definition order.


Previous: , Up: Packages   [Contents][Index]

5.1 trivial-do

Source

packages.lisp (file)

Use List

common-lisp

Exported Definitions

Next: , Previous: , Up: Top   [Contents][Index]

6 Definitions

Definitions are sorted by export status, category, package, and then by lexicographic order.


Previous: , Up: Definitions   [Contents][Index]

6.1 Exported definitions


Previous: , Up: Exported definitions   [Contents][Index]

6.1.1 Macros

Macro: doalist (KEY-VAR VALUE-VAR ALIST-FORM &optional RESULT-FORM) &body BODY

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.

Package

trivial-do

Source

doalist.lisp (file)

Macro: dohash (KEY-VAR VALUE-VAR HASH-TABLE-FORM &optional RESULT-FORM) &body BODY

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.

Package

trivial-do

Source

dohash.lisp (file)

Macro: dolist* (POSITION-VAR VALUE-VAR LIST-FORM &optional RESULT-FORM) &rest BODY

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.

Package

trivial-do

Source

dolist.lisp (file)

Macro: doplist (KEY-VAR VALUE-VAR ALIST-FORM &optional RESULT-FORM) &body BODY

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.

Package

trivial-do

Source

doplist.lisp (file)

Macro: doseq (VAR SEQ-FORM &optional RESULT-FORM) &rest BODY

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.

Package

trivial-do

Source

doseq.lisp (file)

Macro: doseq* (POSITION-VAR VALUE-VAR SEQ-FORM &optional RESULT-FORM) &rest BODY

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.

Package

trivial-do

Source

doseq.lisp (file)


Previous: , Up: Top   [Contents][Index]

Appendix A Indexes


Next: , Previous: , Up: Indexes   [Contents][Index]

A.1 Concepts

Jump to:   F   L   M   T  
Index Entry  Section

F
File, Lisp, trivial-do.asd: The trivial-do․asd file
File, Lisp, trivial-do/src/doalist.lisp: The trivial-do/src/doalist․lisp file
File, Lisp, trivial-do/src/dohash.lisp: The trivial-do/src/dohash․lisp file
File, Lisp, trivial-do/src/dolist.lisp: The trivial-do/src/dolist․lisp file
File, Lisp, trivial-do/src/doplist.lisp: The trivial-do/src/doplist․lisp file
File, Lisp, trivial-do/src/doseq.lisp: The trivial-do/src/doseq․lisp file
File, Lisp, trivial-do/src/packages.lisp: The trivial-do/src/packages․lisp file

L
Lisp File, trivial-do.asd: The trivial-do․asd file
Lisp File, trivial-do/src/doalist.lisp: The trivial-do/src/doalist․lisp file
Lisp File, trivial-do/src/dohash.lisp: The trivial-do/src/dohash․lisp file
Lisp File, trivial-do/src/dolist.lisp: The trivial-do/src/dolist․lisp file
Lisp File, trivial-do/src/doplist.lisp: The trivial-do/src/doplist․lisp file
Lisp File, trivial-do/src/doseq.lisp: The trivial-do/src/doseq․lisp file
Lisp File, trivial-do/src/packages.lisp: The trivial-do/src/packages․lisp file

M
Module, trivial-do/src: The trivial-do/src module

T
trivial-do.asd: The trivial-do․asd file
trivial-do/src: The trivial-do/src module
trivial-do/src/doalist.lisp: The trivial-do/src/doalist․lisp file
trivial-do/src/dohash.lisp: The trivial-do/src/dohash․lisp file
trivial-do/src/dolist.lisp: The trivial-do/src/dolist․lisp file
trivial-do/src/doplist.lisp: The trivial-do/src/doplist․lisp file
trivial-do/src/doseq.lisp: The trivial-do/src/doseq․lisp file
trivial-do/src/packages.lisp: The trivial-do/src/packages․lisp file

Jump to:   F   L   M   T  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.2 Functions

Jump to:   D   M  
Index Entry  Section

D
doalist: Exported macros
dohash: Exported macros
dolist*: Exported macros
doplist: Exported macros
doseq: Exported macros
doseq*: Exported macros

M
Macro, doalist: Exported macros
Macro, dohash: Exported macros
Macro, dolist*: Exported macros
Macro, doplist: Exported macros
Macro, doseq: Exported macros
Macro, doseq*: Exported macros

Jump to:   D   M  

Next: , Previous: , Up: Indexes   [Contents][Index]

A.3 Variables


Previous: , Up: Indexes   [Contents][Index]

A.4 Data types

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