Learn R Programming

lenses (version 0.0.3)

last_l: 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

Arguments

Format

An object of class lens of length 2.

Examples

Run this code
# NOT RUN {
x <- 1:10
view(x, last_l)
set(x, last_l, 50)
# }

Run the code above in your browser using DataLab