groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From C├ędric Champeau <cedric.champ...@gmail.com>
Subject Re: About polish the generics type syntax for closure
Date Wed, 13 Feb 2019 11:15:49 GMT
> > 2. what about polymorphic closures (aka closures which accept different
> > kind of arguments)
> You mean something like `Closure<String, Number -> Date>`?
>
>
No, I mean things like each on a map. You can pass it a closure which
accepts a Map.Entry (1 parameter), or you can pass it a closure which
accepts key, value (2 parameters).

Mime
View raw message