def current_matches

bendvy-ecs-core@0.1.0.4 · machine.bend:169

import bendvy-ecs-core@0.1.0.4/machine.bend as Machine
import Base

169def current_matches(~S: Data,~M: Data,~V: Data,~same: V -> V -> Bool,slot: Slot<S,M,V>,value: V) -> Bool:
170  match slot:
171    case Missing{}: False{}
172    case Present{current,_,_,_}: same(current,value)

Uses (2)

Used by (2)