Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 368078

Summary: [xbase][lib] IterableExtensions / IteratorExtensions#forEach[ item, index | .. ]
Product: [Modeling] TMF Reporter: Sebastian Zarnekow <sebastian.zarnekow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: consiliens
Version: 2.3.0Flags: sebastian.zarnekow: juno+
Target Milestone: M5   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Sebastian Zarnekow CLA 2012-01-07 07:11:08 EST
This would provide access to the current index while iterating.

Same for MapExtensions#forEach
Comment 1 Sebastian Zarnekow CLA 2012-01-07 07:13:29 EST
We should also consider to offer an overloaded IerableExtensions#map that allows to access the current index.
Comment 2 Sebastian Zarnekow CLA 2012-01-18 11:06:26 EST
(In reply to comment #1)
> We should also consider to offer an overloaded IerableExtensions#map that
> allows to access the current index.

I think #map does not deserve an overloaded version.
Comment 3 Sebastian Zarnekow CLA 2012-01-19 03:01:05 EST
Pushed to master.
Comment 4 Karsten Thoms CLA 2017-09-19 17:26:41 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 17:37:58 EDT
Closing all bugs that were set to RESOLVED before Neon.0