powered by
Based on available list element names and subscript value determine index of the element requested
.getSubscript(lst, i)
list to search subsript for
character or numeric to determine final list index
numeric index of the requested element in the list
# NOT RUN { l = list(a="a", b="b") .getSubscript(l, 1) == .getSubscript(l, "a") # }
Run the code above in your browser using DataLab