codegrip icon indicating copy to clipboard operation
codegrip copied to clipboard

Convert `lapply()`/`map()` call to use anonymous function

Open hadley opened this issue 2 years ago • 1 comments

lapply(x, f, 1, 2, 3) to lapply(x, \(i) f(i, 1, 2, 3))

hadley avatar Feb 06 '23 15:02 hadley

With multi-cursor selection on i so that you can easily rename that argument.

hadley avatar Feb 06 '23 15:02 hadley