RestoreStorage.resources: def of bendvy-ecs-core@0.1.0.4 Import: import bendvy-ecs-core@0.1.0.4/restore_storage.bend as RestoreStorage Lines 54-56 of bendvy-ecs-core@0.1.0.4/restore_storage.bend: https://jend.leeeet.dev/read.txt?path=bendvy-ecs-core@0.1.0.4/restore_storage.bend&start_line=54&end_line=56 import Base import bendvy-ecs-core@0.1.0.4/restore_leaf.bend as Stage import bendvy-ecs-core@0.1.0.4/snapshot_leaf.bend as Leaf import bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend as Identity import bendvy-ecs-core@0.1.0.4/decode_data.bend as D def resources(~S:Data,~Context:Type,~I:Type,~P:Type,~identity:Identity.Declaration,~project:P -> P & D.Raw,owner:Leaf.Resource,state:Stage.State) -> Leaf.Resource & Stage.State: match owner state: case Leaf.Resource{owner,declaration} Stage.State{context,records,returned,removed,applied}:resource_join(~S,~Context,~I,~P,~identity,~project,declaration,resource_records(~Context,~I,~P,List.reverse(&1,Stage.Record,records),Stage.State{context,[],returned,removed,applied},owner)) Uses (10): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.reverse https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/decode_data.bend&name=Raw https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend&name=Declaration https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_leaf.bend&name=Record https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_leaf.bend&name=State https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_storage.bend&name=resource_join https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/restore_storage.bend&name=resource_records https://jend.leeeet.dev/definition.txt?path=bendvy-ecs-core@0.1.0.4/snapshot_leaf.bend&name=Resource