Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
define-inverse ( word quot -- )
Invertible quotations
Next:
define-pop-inverse ( word n quot -- )
Vocabulary
inverse
Inputs and outputs
word
a word
quot
the inverse
Word description
Defines the inverse of a given word, taking no arguments from the quotation, only the stack.
See also
define-dual
,
define-involution
,
define-pop-inverse
Definition
USING:
words
;
IN:
inverse
:
define-inverse
( word quot -- )
"inverse"
set-word-prop
;