
13 May
2004
13 May
'04
9:49 p.m.
;; Should test for "is in hash table", rather than NIL-ness (defmacro defmemo (name lambda-list &rest body) (let ((memo (make-hash-table :test #'equal)) (tmp (gensym))) `(flet ((,tmp ,lambda-list ,@body)) (defun ,name (&rest args) (or (gethash args, memo) (setf (gethash args ,memo) (apply #',tmp args)))))))
7719
Age (days ago)
7719
Last active (days ago)
0 comments
1 participants
participants (1)
-
Ingvar