add-function ( name effect module prefix? -- )


Vocabulary
python.syntax.private

Inputs
namean object
effectan object
modulean object
prefix?an object


Outputs
None

Definition


:: add-function ( name effect module prefix? -- )
module name prefix? make-factor-words
:> ( call-word obj-word ) obj-word module name
[ py-import-from ] 2curry ( -- o ) define-inline
call-word obj-word def>> effect make-function-quot
effect define-inline ;