def descriptors
bendvy-ecs-core@0.1.0.3 · execution_lifetime_scope_cleanup.bend:47
import bendvy-ecs-core@0.1.0.3/execution_lifetime_scope_cleanup.bend as ExecutionLifetimeScopeCleanup
import Base
import bendvy-ecs-core@0.1.0.3/relation_types.bend as T
import bendvy-ecs-core@0.1.0.3/execution_relation_resource_snapshot.bend as Snapshot
47def descriptors(-S:Data,views:List<&2,Snapshot.GraphView<S>>) -> List<&2,T.Descriptor<S>>:
48 match views:
49 case []:[]
50 case Snapshot.GraphView{_,descriptor,_,_} <> rest:descriptor <> descriptors(S,rest)