last_l {lenses} | R Documentation |
A lens into the last element
Description
Lens version of x[[length(x)]]
and x[[length(x)]] <- val
[[length(x)]: R:[length(x) [[length(x)]: R:[length(x)
Usage
last_l
Format
An object of class lens
of length 2.
Examples
x <- 1:10
view(x, last_l)
set(x, last_l, 50)
[Package lenses version 0.0.3 Index]