cash-set-.enum: Set value of enum object

$<-.enumR Documentation

Set value of enum object

Description

Sets the value of an enum object. The new value must be one of the valid enum values.

Usage

## S3 replacement method for class 'enum'
x$name <- value

Arguments

x

An enum object

name

The name of the field to set (should be "value")

value

The new value to set

Value

The updated enum object


interface documentation built on Sept. 11, 2024, 8:59 p.m.