(watching NFL playoffs, so just a quick comment)

Was thinking the same as Daniel here.

Was also wondering whether adding the groovier variety of the functionality coud not be automated ? At least for the examples shown it looks like this might be a good option in principal. AST transformation (requires IDE support), generate the Groovy sources in textual form, ... ?

Cheers,
mg


On 07.01.2018 17:14, Daniel Sun wrote:
Hi Russel,

        `[1, 2, 3, 4, 5].parallel.reduce{a, b -> Math.min(a, b)}` is much
groovier than ` [1, 2, 3, 4, 5].parallelStream().reduce{a, b -> Math.min(a,
b)}.get()`, so I hope the original API can be kept and its implementation
can base on Java8's functionality.

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Users-f329450.html


Reply via email to