The trivial-lazy Reference Manual

This is the trivial-lazy Reference Manual, version 0.1, generated automatically by Declt version 4.0 beta 2 "William Riker" on Wed May 15 07:10:44 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 trivial-lazy

Trivial lazy macros and functions for Common Lisp.

Author

David Sorokin

License

MIT

Version

0.1

Dependency

bordeaux-threads (system).

Source

trivial-lazy.asd.

Child Components

3 Files

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


3.1 Lisp


3.1.1 trivial-lazy/trivial-lazy.asd

Source

trivial-lazy.asd.

Parent Component

trivial-lazy (system).

ASDF Systems

trivial-lazy.


3.1.2 trivial-lazy/trivial-lazy.lisp

Source

trivial-lazy.asd.

Parent Component

trivial-lazy (system).

Packages

trivial-lazy.

Public Interface
Internals

*memo-lock* (special variable).


3.2 Static


3.2.1 trivial-lazy/README

Source

trivial-lazy.asd.

Parent Component

trivial-lazy (system).


4 Packages

Packages are listed by definition order.


4.1 trivial-lazy

Source

trivial-lazy.lisp.

Nickname

tlazy

Use List
  • bordeaux-threads.
  • common-lisp.
Public Interface
Internals

*memo-lock* (special variable).


5 Definitions

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


5.1 Public Interface


5.1.1 Special variables

Special Variable: *memo-thread-safe*

Defines whether the memo is thread-safe.

Package

trivial-lazy.

Source

trivial-lazy.lisp.


5.1.2 Macros

Macro: delay (exp &key thread-safe)

Delay the expression.

Package

trivial-lazy.

Source

trivial-lazy.lisp.


5.1.3 Ordinary functions

Function: force (delayed-exp)

Force to return the value of the delayed expression.

Package

trivial-lazy.

Source

trivial-lazy.lisp.

Function: force-safely (delayed-exp?)

Force safely to return the value of the delayed expression.

Package

trivial-lazy.

Source

trivial-lazy.lisp.

Function: memo (function &key thread-safe)

Memoize the specified function.

Package

trivial-lazy.

Source

trivial-lazy.lisp.


5.2 Internals


5.2.1 Special variables

Special Variable: *memo-lock*

The global lock.

Package

trivial-lazy.

Source

trivial-lazy.lisp.


Appendix A Indexes


A.1 Concepts