R/base-lenses.R
class_l.Rd
A lens into the class of an object. Lens equivalent of class and class<-.
class_l
An object of class lens of length 2.
lens
x <- 1:10 view(x, class_l)#> [1] "integer"set(x, class_l, "super_integer")#> [1] 1 2 3 4 5 6 7 8 9 10 #> attr(,"class") #> [1] "super_integer"