R/base-lenses.R
last_l.Rd
Lens version of x[[length(x)]] and x[[length(x)]] <- val
x[[length(x)]]
x[[length(x)]] <- val
[[length(x)]: R:[length(x) [[length(x)]: R:[length(x)
last_l
An object of class lens of length 2.
lens
x <- 1:10 view(x, last_l)#> [1] 10set(x, last_l, 50)#> [1] 1 2 3 4 5 6 7 8 9 50