Re: Gee Functional iterators



On Tue, Jul 13, 2010 at 11:58 PM, Didier 'Ptitjes' <ptitjes free fr> wrote:
> There is already language support for tupples in Dova profile and there
> is great chance it comes one day to the GLib profile. So an iterator
> could return a Tupple, and you could do:
>
> foreach (var (i, e) in iterator.indexed()) {
>        // do whatever with i and e
> }

Nice! Would help the Hash iterators too.

martin


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]