Lens version of x[[length(x)]] and x[[length(x)]] <- val

[[length(x)]: R:[length(x) [[length(x)]: R:[length(x)

last_l

Format

An object of class lens of length 2.

Examples

x <- 1:10 view(x, last_l)
#> [1] 10
set(x, last_l, 50)
#> [1] 1 2 3 4 5 6 7 8 9 50