for statement with index and value

Rick Waldron waldron.rick at
Wed Jul 15 16:15:17 UTC 2015

On Wed, Jul 15, 2015 at 2:21 AM Sebastian Zartner <
sebastianzartner at> wrote:

> That only works if all values are distinct. The following will result
> in the wrong index for the last item:

Indeed, but useful if the program can reliably know that the array will
contain only unique entries.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list