In the old Xpand / Xtend expression language, there was a shorthand for collect, as documented in the Eclipse help:As navigation through many objects is very common, there is a shorthand notation for collect that makes the expressions more readable. Instead of
self.employee.collect(e | e.birthdate)one can also write:
self.employee.birthdateIn general, when a property is applied to a collection of Objects, it will automatically be interpreted as a
collectover the members of the collection with the specified property.The syntax is a shorthand for
collect, if the feature does not return a collection itself. But sometimes we have the following:self.buildings.rooms.windows // returns a list of windowsThis syntax works, but one cannot express it using the
collectoperation in an easy way.As far as I understood (please correct me if I'm wrong), the map lambda expression can be used as a substitue of the old collect keyword.But it doesn't seem to be possible to navigate through a model in such an easy way like the shorthand for collect in the example above self.buildings.rooms.windows. At least Xtend does not offer this possibility in auto completion for me and the compiler complains if I try to use it.Is it possible that you again offer this shorthand? It would be very handy and reduce a lot of code in my project :-)