powered by
This lens allows you to access and modify elements of a list or vector based on their position or a logical condition.
map_l(l, .ptype = NULL)
A lens that selects the specified elements
A lens that selects the elements to lens into
The prototype of the data structure to return
d <- list(list(a = 1, b = 2), list(a = 4, b = 9)) l <- index_l("a") view(d, map_l(l)) over_map(d, map_l(l), sqrt)
Run the code above in your browser using DataLab