| Summary: | [Xbase] Support for procedures, i.e. "functions" of return type 'void' | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sven Efftinge <sven.efftinge> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P1 | CC: | meinte.boersma, sebastian.zarnekow |
| Version: | 2.1.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Sven Efftinge
Agree (for what it's worth ;))
Adding
interface VoidFunction1<Param> {
void apply(Param p);
}
to o.e.x.x.l.Functions and a o.e.x.x.l.IterableExtensions#forEach with signature
public static final <T> void forEach(Iterable<T> iterable, VoidFunction1<? super T> function)
should do the trick and saves everyone from having to write .forEach(it|{it.doSomething; null})
Pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |