ExecutionMachineState.retained: def of bendvy-ecs-core@0.1.0.3 Import: import bendvy-ecs-core@0.1.0.3/execution_machine_state.bend as ExecutionMachineState Lines 56-63 of bendvy-ecs-core@0.1.0.3/execution_machine_state.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.3/execution_machine_state.bend&start_line=56&end_line=63 import Base # Bevy commits State and emits StateTransitionEvent before phase schedules: # https://github.com/bevyengine/bevy/blob/ad678262ce53b5d142fe49ee5e08caff6f00ab60/crates/bevy_state/src/state/transitions.rs#L138-L205 # Comparator equality retains actual Current; exited/Previous/event use the # requested value, including when equal values have different representations. def retained(~V:Data,equal:Bool,from:V,to:V) -> V: match equal: case True{}:from case False{}:to Uses (1): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool