In Acceleo I have an OrderedSet of objects, where each object has a string as attribute.
I want to get a container(e.g. OrderedSet) of those strings, where each string is unique.
First, I collect all the strings into an collection ->collect(attribute)
. Then I convert to an Ordered Set ->asOrderedSet()
. This will remove all duplicates.