| Summary: | [xbase] allow collection.addAll(iterable) | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | unspecified | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | RC1 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
see google.collect.Iterables#addAll(..) Current workaround: import Iterables as static extension. I'll add CollectionExtensions#addAll and change CollectionExtension#operator_add to take an iterable instead of a collection as the second arg. 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 |
It would be nice to have a CollectionExtensions.addAll(Collection<? super T>, Iterable<? super T>) to allow code such as foo() { val r = <String>newArrayList(); r.addAll(newArrayList(newArrayList("foo")).flatten); r; }