powered by
Lens into a single element of a list.
index_l(i)
A lens that selects the specified element
Index of the element to lens into
This lens performs indexing using double bracket notation, i.e., x[[i]].
x[[i]]
x <- list(a = 1, b = 2) l <- index_l("a") view(x, l)
Run the code above in your browser using DataLab