groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <blackd...@gmx.org>
Subject Re: Adding map, reduce, filter as aliases for collect, inject, grep methods
Date Sun, 01 Nov 2015 19:12:18 GMT
On 01.11.2015 19:01, Juan Vazquez wrote:
> I prefer the map/reduce/filter names also..(I am the author of extention
> module mentioned).  What I don't necessarily like about the Ext module I
> wrote is that I had to pass a String with the desired operator. Is there
> is a way to pass operators around like a function?

normally you do what you did in the source code and that is use a 
Closure for the function.

bye blackdrag

Mime
View raw message