We have a number of cases in which findCurrentFirst on the internal Stack implementation need to pass an additional parameter, leading to functions passed to it needing to be stateful (aka “capturing lambdas”). For efficiency reasons it would be much better to avoid such lambdas and expose instead a specialized method which allows passing an additional parameter, and consume it again by definig a BiFunction instead of a Function. |