paulk-asert opened a new pull request, #2751: URL: https://github.com/apache/groovy/pull/2751
…ce DGM methods Add java.util.function twins beside the Closure overloads of inject and injectAll in DefaultGroovyMethods (Object/Iterator/Map receivers) and ArrayGroovyMethods (array receivers). No-initial-value forms take a BinaryOperator; initial-value forms take a BiFunction (Map forms fold over Map.Entry). The Iterable inject twins already existed from GROOVY-12054; this completes the remaining receivers. sum is deliberately excluded (its twin collides with the Object initialValue overload) and is tracked separately. 13 new overloads (9 in DGM, 4 in ArrayGroovyMethods), plus a typed InjectAllFunctionIterator for the lazy Iterator form. Regression tests added to LambdasTest. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
