Memoization

Simple memoization with the ability to read/write memo data to a file. Uses the serialization mechanism to parse/unparse data.

Procedures

memo:attach f

Creates a memoized version of f. Returns f if it is already memoized.

memo:save f pathname

Saves memoization data of the function f to a file.

memo:load f pathname

Given a memoized function f, loads its memoization data from a file.

has-memo? f

True if f is memoized.


Scheme Power Tools Documentation
(c) Maciej Pacula 2010-2011
http://mpacula.com