Skip to contents

Get all keys of an enum

Usage

enumKeys(enum)

Arguments

enum

enum containing the keys.

Value

List of key names.

See also

Other enumeration-helpers: enumGetKey(), enumGetValue(), enumHasKey(), enumPut(), enumRemove(), enumValues(), enum()

Examples

Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2))
enumKeys(Symbol)
#> [1] "Diamond"  "Triangle" "Circle"