val {FastUtils} | R Documentation |
Get Value from Enumerated Element by Index
Description
This function extracts the value from an enumerated element by the given index.
Usage
val(elem, index)
Arguments
elem |
An enumerated element. |
index |
The index of the value to extract. |
Value
The value at the specified index in the enumerated element.
See Also
Examples
# Extract value from an enumerated element by index
elem <- list(1, "a", "b")
val(elem, 2)
[Package FastUtils version 0.1.1 Index]