def aligned_output

bendtorch-core@0.1.0.0 · src/shape/plan_proofs.bend:65

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

65def aligned_output(-left: List<&2, U32>, -right: List<&2, U32>, alignment: Shape.Alignment<left, right>) -> Maybe<&2, List<&2, Nat>>:
66  match alignment:
67    case Shape.Aligns{output, aligned}:
68      Some{Shape.naturals(output)}
69    case Shape.Misaligned{}:
70      None{}

Uses (6)

Used by (3)