def value_write_read_field

bendvy-ecs-core@0.1.0.3 · capabilities.bend:81

import bendvy-ecs-core@0.1.0.3/capabilities.bend as Capabilities
import Base

81# Advanced setup projection extracting the closed operation from its grant.
82# Does not invoke it, access World or grant capabilities beyond that value.
83def value_write_read_field(~H: Type,~C: Type,~V: Data,cap: ValueWrite<H,C,V>) -> H -> H & V:
84  match cap:
85    case ValueWrite{get,_}: get

Uses (2)

Used by (1)