first_l {lenses}R Documentation

A lens into the first element

Description

Lens version of x[[1]] and x[[1]] <- val x <- 1:10 view(x, first_l) set(x, first_l, 50)

[[1]: R:[1 [[1]: R:[1

Usage

first_l

Format

An object of class lens of length 2.


[Package lenses version 0.0.3 Index]