On Mon, 21 Sep 2026 13:08:29 GMT, Johan Sjölen <[email protected]> wrote:
>> I looked at this again and see that the function is used. It is still true >> that the code is duplicated in the two functions. > > Well, it's not duplicated, they are different. One takes the base-case, and > one takes the recursive case. In C++17 you can also use folding functions ( > https://en.cppreference.com/cpp/language/fold ) but I think that those look > even stranger. See my rewrites to the code. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32276#discussion_r4561157426
