def component_function
bendvy-ecs-core@0.1.0.4 · ordinary_recoverable_component_capture.bend:23
import bendvy-ecs-core@0.1.0.4/ordinary_recoverable_component_capture.bend as OrdinaryRecoverableComponentCapture
import Base
import bendvy-ecs-core@0.1.0.4/world.bend as W
import bendvy-ecs-core@0.1.0.4/ordinary_declaration.bend as Declaration
23def component_function(~S:Data,~P:Type,~identity:Declaration.Declaration<S,P>,~H:Type,value:ComponentWrite<S,P,identity,H>) -> H -> W.Handle<S> -> Maybe<P> -> ComponentAttempt<H,P>:
24 match value:
25 case ComponentWrite{f}:f