On Fri, 17 Nov 2023 13:45:14 GMT, Quan Anh Mai <qa...@openjdk.org> wrote:
>> We need `token` to find it in the array, don't we? All the invocations pass >> such a function with two parameters. The change here needs all invocations >> to be changed. > > No, it can be embedded into the function object. I think you can have 2 versions, `GrowableArray::find(const E& value)` and `GrowableArray::find_if(UnaryPredicate p)`. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15418#discussion_r1398608278