I can't find in the documentation, does this method return true on at least one value was removed (e.g. index changed)?
retain() does not return a boolean. Only the predicate function passed to it returns a boolean.
1 Like
Thanks for quick reply,
I must to learn more about the predicate to understand how does it work.
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.