Core.broadcast_index: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/core.bend as Core Lines 182-191 of bendtorch-core@0.1.0.0/src/shape/core.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&start_line=182&end_line=191 import Base def broadcast_index(size: Nat, index: Nat) -> Nat: match size: case 0n: index case 1n+p: match p: case 0n: 0n case 1n+q: index Uses (1): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat