R/base-lenses.R
body_l.Rd
A lens into the body of a function. The lens equivalent of body and body<-. You probably shouldn't use this.
body_l
An object of class lens of length 2.
lens
inc2 <- function(x) x + 2 view(inc2, body_l)#> x + 2inc4 <- set(inc2, body_l, quote(x + 4)) inc4(10)#> [1] 14