Community
Participate
Working Groups
The collect iteration flattens and so is the only iterator for which the return kind is dependent on both source and body kinds. This is currently unmodelled and consequently EssentialOCLLeft2RightVisitor special cases iterations named "collect". One possible solution may involve pairs of declarations for Ordered/Unordered body types. But flatten() is also unmodelled so probably want a joint solution. Perhaps collect() is syntactic sugar for collectNested()->flatten().