Common Lisp Package: TRIVIAL-LAZY

README:

FUNCTION

Public

FORCE (DELAYED-EXP)

Force to return the value of the delayed expression.

MEMO (FUNCTION &KEY (THREAD-SAFE *MEMO-THREAD-SAFE*))

Memoize the specified function.

MACRO

Public

DELAY (EXP &KEY (THREAD-SAFE *MEMO-THREAD-SAFE* THREAD-SAFE-P))

Delay the expression.

VARIABLE

Public

*MEMO-THREAD-SAFE*

Defines whether the memo is thread-safe.

Private

*MEMO-LOCK*

The global lock.