define-simple-generic ( word effect -- )
Factor documentation > Factor handbook > The language > Objects > Generic words and methods > Generic word introspection
Prev:define-generic ( word combination effect -- )
Next:create-method ( class generic -- method )


Vocabulary
generic.standard

Inputs and outputs
worda word
effectan effect


Word description
Defines a generic word with the standard-combination method combination and a dispatch position of 0.

See also
generic, define-generic, GENERIC:, GENERIC#, MATH:, HOOK:

Definition
USING: generic kernel ;

IN: generic.standard

: define-simple-generic ( word effect -- )
[ simple-combination ] dip define-generic ;