Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368078 - [xbase][lib] IterableExtensions / IteratorExtensions#forEach[ item, index | .. ]
Summary: [xbase][lib] IterableExtensions / IteratorExtensions#forEach[ item, index | .. ]
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-07 07:11 EST by Sebastian Zarnekow CLA
Modified: 2017-09-19 17:37 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: juno+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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