memoize: use unsafe words.
parent
6a08de2203
commit
632f0d9810
|
@ -29,7 +29,7 @@ IN: memoize
|
||||||
|
|
||||||
: unpacker ( seq -- quot )
|
: unpacker ( seq -- quot )
|
||||||
length dup 4 <=
|
length dup 4 <=
|
||||||
[ { [ drop ] [ ] [ first2 ] [ first3 ] [ first4 ] } nth ]
|
[ { [ drop ] [ ] [ first2-unsafe ] [ first3-unsafe ] [ first4-unsafe ] } nth ]
|
||||||
[ [firstn] ] if ;
|
[ [firstn] ] if ;
|
||||||
|
|
||||||
: pack/unpack ( quot effect -- newquot )
|
: pack/unpack ( quot effect -- newquot )
|
||||||
|
|
Loading…
Reference in New Issue