def next_cycle
import bendvy-ecs-core@0.1.0.4/relation_graph.bend as RelationGraphimport Base
import entity_key.bend as K
95def next_cycle(~S: Data,current: Maybe<&2,K.Key>,next: K.Key -> Bool) -> Bool:
96 match current:
97 case None{}: False{}
98 case Some{id}: next(id)