def selected
import bendvy-ecs-core@0.1.0.4/inspector_query.bend as InspectorQueryimport Base
import inspector.bend as I
import inspector_query_projection.bend as Q
import world.bend as W
44def selected(~S:Data,~V:Data,accepted:Bool,+target:W.Handle<S>,value:I.Value<V>) -> Result<&2,&2,LookupError,Q.Row<S,V>>:
45 match accepted target:
46 case True{} target:Done{Q.Row{target,value}}
47 case False{} W.Handle{_,id}:Fail{QueryMismatch{id}}