Skip to main content

precedence

Get the precedence index for state.

Lower index means higher precedence.

def precedence(
state: str
) - > int

Get the precedence index for state. Lower index means higher precedence.

Parameters

NameTypeDescription
statestrThe state identifier used to look up the corresponding precedence level in the lookup table.

Returns

TypeDescription
intThe precedence index associated with the state, where lower values indicate higher priority; returns a default null-precedence value if the state is not found.