1 ! Copyright (C) 2004 Chris Double.
2 ! See http://factorcode.org/license.txt for BSD license.
4 USING: kernel sequences words inference namespaces math parser ;
7 : stack-effect-in ( quot word -- n )
11 drop infer effect-in length nip
14 : make-lazy-quot ( word quot -- quot )
16 dup , swap stack-effect-in [ \ curry , ] times \ <promise> ,
19 : LAZY: ( -- object object object )
20 CREATE dup reset-generic [ dupd make-lazy-quot define-compound ] f ; parsing