memoize: change MEMO[ to push a quotation.

John Benediktsson 2012-05-04 21:31:23 -07:00
parent 59edc3803e
commit 425119ccde
2 changed files with 2 additions and 2 deletions

View File

@ -37,6 +37,6 @@ unit-test
[ t ] [
{ 1/8 1/8 1/8 1/8 1/16 1/16 1/16 }
[ [ MEMO[ seconds sleep ] ] each ] benchmark
[ MEMO[ seconds sleep ] each ] benchmark
0.18e9 0.25e9 between?
] unit-test

View File

@ -83,4 +83,4 @@ M: memoized reset-word
\ invalidate-memoized t "no-compile" set-word-prop
SYNTAX: MEMO[ parse-quotation dup infer memoize-quot append ;
SYNTAX: MEMO[ parse-quotation dup infer memoize-quot suffix! ;