powered by
Test whether Enum is variant variant.
Enum
variant
is.variant(x, variant, ...)
object to be tested
character string denoting variant to check.
objects passed to methods
TRUE if x is enumerated type of variant variant, FALSE otherwise
TRUE
x
FALSE
# NOT RUN { HelloEnum <- Enum( "HelloEnum", Hello, World ) # TRUE is.variant(HelloEnum$Hello, "Hello") # FALSE is.variant(HelloEnum$Hello, "World") # }
Run the code above in your browser using DataLab