Flat.project_right_index: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/flat.bend as Flat Lines 51-56 of bendtorch-core@0.1.0.0/src/shape/flat.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/flat.bend&start_line=51&end_line=56 import Base import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape def project_right_index(+plan: Shape.BroadcastPlan, map: Shape.Index, index: Shape.FlatIndex) -> Shape.FlatIndex: match map index: case Shape.Indexed{rows, exact} Shape.FIndex{+value, bound}: Shape.FIndex{Shape.walk_right(rows, value), right_bound(plan, rows, exact, value, bound)} case Shape.Unindexed{zero} Shape.FIndex{+value, bound}: Empty.absurd(Shape.FlatIndex, hollow(Shape.output_shape(plan), value, zero, bound)) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Empty.absurd https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=BroadcastPlan https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=FlatIndex https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=Index https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=extents https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=left_shape https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=output_shape https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=right_shape https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&name=walk_right https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/flat.bend&name=hollow https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/shape/flat.bend&name=right_bound