pair-methods vocabulary
Factor handbook ยป Vocabulary index


Summary
Order-insensitive double dispatch generics

Metadata
Authors:Joe Groff


Words

Tuple classes
ClassSuperclassSlots
no-pair-method tuplea b generic


Parsing words
WordSyntax
PAIR-GENERIC:
PAIR-M:


Ordinary words
WordStack effect
(PAIR-GENERIC:)( -- )
(PAIR-M:)( -- )
?prefix-swap( quot ? -- quot' )
?swap( a b ? -- a/b b/a )
define-pair-generic( word effect -- )
define-pair-method( a b pair-generic definition -- )
make-pair-generic( word -- )
method-sort-key( pair -- key )
no-pair-method( a b generic -- * )
pair-generic-definition( word -- def )
pair-match-condition( pair -- quot )
pair-method-cond( pair quot -- array )
sorted-pair-methods( word -- alist )


Class predicate words
WordStack effect
no-pair-method?( object -- ? )


Files


Metadata files