Get the data pointed to by a lens, apply a function and replace it with the result.
over(d, l, f)
d | the data (or an oscope) |
---|---|
l | the lens (or the function if |
f | the function (or nothing if |
#> [1] 1 2 5 4 5# returns c(1:2, 5, 4:5)