def read_done
import bendtorch-core@0.1.0.0/src/tensor/observation.bend as Observationimport 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
154def read_done(-shape: Shape.Shape, +index: U32, result: Result<&2, &1, Core.Error, Core.Tensor<shape>>) -> Maybe<&2, Bool>:
155 match result:
156 case Fail{error}:
157 None{}
158 case Done{tensor}:
159 Some{read_done_pair(shape, Core.read_flat(shape, tensor, index))}
Uses (9)
Used by (0)
No other definition uses this definition.