def coordinate_result

bendtorch-core@0.1.0.0 · src/shape/LAWS.bend:19

import bendtorch-core@0.1.0.0/src/shape/LAWS.bend as LAWS
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

19def coordinate_result(-shape: Shape.Shape, result: Result<&2, &2, Shape.Error, Shape.CheckedCoordinate<shape>>) -> Maybe<&2, List<&2, U32>>:
20  match result:
21    case Fail{error}:
22      None{}
23    case Done{coordinate}:
24      Some{Shape.coordinate_values(shape, coordinate)}

Uses (8)

Used by (16)