enum_type {matchr}R Documentation

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

x <- Result$Ok("hello world!")
enum_type(x)  # "Result"

[Package matchr version 0.1.0 Index]