A select expression queries a model collection (or a collection variable) and returns a list containing the result of the query.
Select expressions can (currently) only be used in variable or property assignments. The syntax of the select is similar to that of forEach. It takes a type parameter and may have a constraint.
var xList:List = self.eClassifiers->select(c:ecore.EClass)
‘Number of classes: ‘ xList.size()
xList->forEach(clazz:ecore.EClass) {
'\n \t Class: ' clazz.name
}var yList:List = self.eClassifiers->select(c:ecore.EClass | c.name.startsWith("MOF"))