def current_matches

bendvy-ecs-core@0.1.0.3 · machine.bend:124

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

124def current_matches(~S: Data,~M: Data,~V: Data,~same: V -> V -> Bool,slot: Slot<S,M,V>,value: V) -> Bool:
125  match slot:
126    case Missing{}: False{}
127    case Present{current,_,_,_}: same(current,value)

Uses (2)

Used by (1)