Learn R Programming

matchr (version 0.1.0)

enum_type: Enum Type

Description

Return the enumerated type name of an object, if a name was provided.

Usage

enum_type(x, ...)

Arguments

x

Enum object

...

objects passed to methods

Value

character with the name of the enumerated type or NULL

Examples

Run this code
# NOT RUN {
x <- Result$Ok("hello world!")
enum_type(x)  # "Result"
# }

Run the code above in your browser using DataLab