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

IList.update #46

Closed
norpan opened this issue Oct 27, 2022 · 1 comment
Closed

IList.update #46

norpan opened this issue Oct 27, 2022 · 1 comment

Comments

@norpan
Copy link

norpan commented Oct 27, 2022

I'd like the method IList.update because I find myself often writing things like

myList.put(index, myFunction(myList.get(index)))

but it would be great to be able to write

myList.update(index, myFunction)
@marcglasberg
Copy link
Owner

Done in version [8.2.0]:

  • IList.replaceBy method lets you define a function to transform an item at a specific index location.

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

2 participants