def step_write
bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:140
import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
140def step_write(-shape: Shape.Shape, left: Core.Dynamic, right: Core.Dynamic,
141 pair: Core.Tensor<shape> & Result<&2, &2, Core.Error, Unit>) -> Step<shape>:
142 (output, result) = pair
143 match result:
144 case Fail{error}:
145 Stop{left, right, error}
146 case Done{unit}:
147 Continue{State{left, right, output}}