R/base-lenses.R
dim_l.Rd
A lens into an objects dimensions
dim_l
An object of class lens of length 2.
lens
x <- 1:10 (y <- set(x, dim_l, c(2,5)))#> [,1] [,2] [,3] [,4] [,5] #> [1,] 1 3 5 7 9 #> [2,] 2 4 6 8 10view(y, dim_l)#> [1] 2 5