Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert lapply()/map() call to use anonymous function #10

Open
hadley opened this issue Feb 6, 2023 · 1 comment
Open

Convert lapply()/map() call to use anonymous function #10

hadley opened this issue Feb 6, 2023 · 1 comment

Comments

@hadley
Copy link

hadley commented Feb 6, 2023

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

@hadley
Copy link
Author

hadley commented Feb 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant