Closed maresb closed 8 months ago
Probably for implementation it's simpler to flip the order of iteration: the outer loop should be over sequences, the inner loop should be over the elements of the outer-selected sequence, and the result should be a list containing the currently-largest prefix sequence.
What happened?
I'm having a very difficult time understanding how
suffix_union
works. It seems to me like it should be simpler.Maybe first we should define
prefix_union
, and thensuffix_union
would be the reverse ofprefix_union
with all the arguments reversed.Now I think
prefix_union
should be:In particular, I don't see why we should have
SupportsRichComparisonT
.Context: I'm trying to review #529.
Attn: @mariusvniekerk, @jacksmith15