[ImageJ-devel] Simplifying loops?

Johannes Schindelin Johannes.Schindelin at gmx.de
Mon Jun 14 14:00:28 CDT 2010


Hi,

On Mon, 14 Jun 2010, Stephan Saalfeld wrote:

> In the coming changes, Image<T> implements java.lang.Iterable<T>, such 
> that the Java language shortcut works:
> 
> Image< T > image;
> for ( final T : image ) {
>     // meat of the loop
> }
> 
> How's that?

Perfect! Thank you!

Ciao,
Dscho





More information about the ImageJ-devel mailing list