Word description Defines a new member of a variant class without restricting such definitions to a single statement or source file. The variant class should be listed first, and the class member should follow.
Examples
USING: kernel variants ;
IN: scratchpad
VARIANT: list ;
VARIANT-MEMBER: list nil ;
VARIANT-MEMBER: list cons: { { first object } { rest list } } ;