powered by
Return the variant name of an enumerated type.
variant(x, ...)
Enum object
objects passed to methods
character with the name of the variant or NULL
NULL
# NOT RUN { x <- Result$Ok("hello world!") variant(x) # "Ok" # }
Run the code above in your browser using DataLab