EventNoticeRuntime.rebuilt: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend as EventNoticeRuntime Lines 82-89 of bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend&start_line=82&end_line=89 import Base import bendvy-ecs-core@0.1.0.4/relation_commands.bend as Notice def rebuilt(~S:Data,~P:Data,notices:List<&2,Notice.Notice>,slots:List<&2,List<&2,P>>) -> List<&2,Notice.Notice>: match notices slots: case Nil{} _:[] case Con{Notice.Original{_},rest} Nil{}:rebuilt(~S,~P,rest,[]) case Con{Notice.Original{_},rest} Con{head,tail}:List.append(&2,Notice.Notice,original_notices(~S,~P,head),rebuilt(~S,~P,rest,tail)) case Con{Notice.RelationFailed{failure},rest} slots:Notice.RelationFailed{failure} <> rebuilt(~S,~P,rest,slots) case Con{Notice.ComponentRemoved{id},rest} slots:Notice.ComponentRemoved{id} <> rebuilt(~S,~P,rest,slots) case Con{Notice.CleanupPaused{frames},rest} slots:Notice.CleanupPaused{frames} <> rebuilt(~S,~P,rest,slots) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/event_notice_runtime.bend&name=original_notices https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/relation_commands.bend&name=Notice