Skip to content
Astera Technology

Decide whether order is part of a stored value

Contrast an ordered sequence with an unordered selection.

Compare the rule with concrete cases

Fictional instruction requires sequence A then B. A separate selection field requires the set containing A and B in any order. The same two symbols have different equality rules. Calling both a “list” leaves this distinction unstated.

Filled synthetic modelling cases
InputSequence equals A,BSet equals A+BDistinction
A,BYesYesBoth match
B,ANoYesSame members; different order
A onlyNoNoMissing B
Download editable CSV ↓

Work through the distinction

The second case prevents an unordered comparison from being used for a sequence. Choose the equality rule before describing how records may be sorted for display.

Does B,A satisfy the instruction sequence?

Show the worked answer

No. It has the required members but reverses the required order; it satisfies only the unordered selection.

Acceptance wording to adapt

For instruction_sequence require exactly [A,B] in that order. For selected_members require the set {A,B} regardless of display order. Do not use one comparison rule for both fields.

Related resources