def after_value
bendtorch-core@0.1.0.0 · src/tensor/observation.bend:41
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observation
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
41def after_value(-shape: Shape.Shape, +index: U32, +other: U32,
42 result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, F32>:
43 match result:
44 case Fail{error}:
45 None{}
46 case Done{tensor}:
47 after_value_pair(shape, other, Core.read_flat(shape, tensor, index))