Community
Participate
Working Groups
The Collection(T).collect() iteration is currently unmodelable because many different input types yield the same output type. Suggest intoduce a FlattenedCollection mix-in analoguous to the OrderedCollection mix-in. This would allow the declaration: Collection(T).collect() : FlattenedCollection(T) Application to Set(Sequence(Integer)) invokes the specialization Bag(Set(Sequence(Integer))).collect() : FlattenedBag(Set(Sequence(Integer))) for which built-in type conformance determines that FlattenedBag(Set(Sequence(Integer))) conforms to FlattenedBag(Integer) which conforms to Bag(Integer). The modeling problem on the iteration is therefore moved sideways to a built-in conformance on a special type; a special-behavior type rather than an irregular iteration.