RuleSequence
- class RuleSequence(rules: List[Tuple[Rule, int | Evaluatable[int]]], label: str | None = None)
A
RuleSequenceacts as a list ofRuleobjects with an optional label indicating the name of the sequence.Defines
__iter__,__contains__,__getitem__, and__setitem__to operate on the list of rules provided.- Parameters:
rules – Pairs of (Rule, loop count) in the sequence.
label – The name of the sequence.
Attributes
Pairs of (Rule, loop count) in the sequence.
The name of the sequence.
Methods
- label
The name of the sequence.
- rules
Pairs of (Rule, loop count) in the sequence.