| enumHasKey | R Documentation |
Check if an enum has a certain key.
enumHasKey(key, enum)
key |
Key to check for. |
enum |
Enum where to look for the |
TRUE if a key-value pair for key exists, FALSE otherwise.
Other enumeration-helpers:
enumGetKey(),
enumGetValue(),
enumKeys(),
enumPut(),
enumRemove(),
enumValues(),
enum()
Symbol <- enum(c(Diamond = 1, Triangle = 2, Circle = 2))
enumHasKey("Diamond", Symbol)
enumHasKey("Square", Symbol)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.