def same_presence

bendvy-ecs-core@0.1.0.3 · execution_query_admission.bend:122

import bendvy-ecs-core@0.1.0.3/execution_query_admission.bend as ExecutionQueryAdmission
import Base
import bendvy-ecs-core@0.1.0.3/execution_query_matches.bend as Match

122def same_presence(left:Match.Presence,right:Match.Presence) -> Bool:
123  match left right:
124    case Match.Optional{} Match.Optional{}:True{}
125    case Match.Required{} Match.Required{}:True{}
126    case Match.With{} Match.With{}:True{}
127    case Match.Without{} Match.Without{}:True{}
128    case _ _:False{}

Uses (2)

Used by (1)