The defmemo Reference Manual

This is the defmemo Reference Manual, version 1.5, generated automatically by Declt version 4.0 beta 2 "William Riker" on Mon Feb 26 16:16:14 2024 GMT+0.

Table of Contents


1 Introduction


2 Systems

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


2.1 defmemo

Memoizing defun

Author

Orivej Desh <>

License

Unlicense <http://unlicense.org/UNLICENSE>

Version

1.5

Dependencies
  • alexandria (system).
  • trivial-garbage (system).
Source

defmemo.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 defmemo/defmemo.asd

Source

defmemo.asd.

Parent Component

defmemo (system).

ASDF Systems

defmemo.


3.1.2 defmemo/package.lisp

Source

defmemo.asd.

Parent Component

defmemo (system).

Packages

defmemo.


3.1.3 defmemo/defmemo.lisp

Dependency

package.lisp (file).

Source

defmemo.asd.

Parent Component

defmemo (system).

Public Interface
Internals

flat-arglist (function).


4 Packages

Packages are listed by definition order.


4.1 defmemo

Source

package.lisp.

Use List
  • alexandria.
  • common-lisp.
  • trivial-garbage.
Public Interface
Internals

flat-arglist (function).


5 Definitions

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


5.1 Public Interface


5.1.1 Macros

Macro: defmemo (name args &body body)

Construct defun with body wrapped into memoizing hash table. Put the latter under :memo property of name.

Package

defmemo.

Source

defmemo.lisp.


5.1.2 Ordinary functions

Function: clear-memo (symbol)

Reset memoizing hash table.

Package

defmemo.

Source

defmemo.lisp.

Function: get-memo (symbol)

Get memoizing hash table.

Package

defmemo.

Source

defmemo.lisp.

Function: (setf get-memo) (symbol)

Replace memoizing hash of symbol with value.

Package

defmemo.

Source

defmemo.lisp.


5.2 Internals


5.2.1 Ordinary functions

Function: flat-arglist (args)

Convert ordinary lambda list into funcallable list.

Package

defmemo.

Source

defmemo.lisp.


Appendix A Indexes


A.1 Concepts


A.3 Variables