def is_current
import bendvy-ecs-core@0.1.0.3/machine.bend as Machineimport Base
48def is_current(~S: Data,~M: Data,~V: Data,~same: V -> V -> Bool,view: CurrentView<S,M,V>,value: V) -> Bool:
49 match view:
50 case Unavailable{}: False{}
51 case Current{current}: same(current,value)