This function extracts the value from an enumerated element by the given index.
Examples
# Extract value from an enumerated element by index
elem <- list(1, "a", "b")
val(elem, 2)
#> [1] "b"
This function extracts the value from an enumerated element by the given index.
# Extract value from an enumerated element by index
elem <- list(1, "a", "b")
val(elem, 2)
#> [1] "b"