RefinementSequence

struct RefinementSequence : IteratorProtocol, Sequence, Sendable

The traits of a refinement closure sorted in topological order w.r.t. to their refinements.

The sequence is ordered such that a trait t always occur after the traits which it refines. Hence the last element of the sequence is the most refined trait of the closure.