def fill_values_step
bendtorch-core@0.1.0.0 · src/tensor/core.bend:358
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
358def fill_values_step(-shape: Shape.Shape, rec: Tensor<shape> -> Result<&2, &1, Error, Tensor<shape>>,
359 pair: Tensor<shape> & Result<&2, &2, Error, Unit>) -> Result<&2, &1, Error, Tensor<shape>>:
360 (tensor, result) = pair
361 match result:
362 case Fail{error}:
363 Fail{error}
364 case Done{unit}:
365 rec(tensor)