R/base-lenses.R
rev_l.Rd
Lens into the reverse of an object.
rev_l
An object of class lens of length 2.
lens
x <- 1:10 view(x, rev_l)#> [1] 10 9 8 7 6 5 4 3 2 1set(x, rev_l, 11:20)#> [1] 20 19 18 17 16 15 14 13 12 11