variant {matchr} | R Documentation |
Enum Variant
Description
Return the variant name of an enumerated type.
Usage
variant(x, ...)
Arguments
x |
Enum object |
... |
objects passed to methods |
Value
character with the name of the variant or NULL
Examples
x <- Result$Ok("hello world!")
variant(x) # "Ok"
[Package matchr version 0.1.0 Index]