A lens into the class of an object. Lens equivalent of class and class<-.

class_l

Format

An object of class lens of length 2.

Examples

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"