Yet another run at reduce (original) (raw)

Doug Lea dl at cs.oswego.edu
Tue Jan 8 09:13:04 PST 2013


On 01/08/13 11:41, Brian Goetz wrote:

Yep. The "leftCombining" part is simply adapting a BiBlock to a BiFunction:

(t, u) -> { block.accept(t,u); return t; }

Deja vu from last week with CompletableFuture where I ended up supporting multiple distinct forms.

Doing which depends on your audience's tolerance for inescapable goopy adapters vs adding multiple versions of a method that avoid the need for them. For j.u.c audience it wasn't a hard decision, and people told me that the resulting API is a little more user-friendly/decodable anyway.

-Doug



More information about the lambda-libs-spec-observers mailing list