Tensor.ones_then: def of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/tensor.bend as Tensor Lines 52-58 of bendtorch@1.3.0.0/tensor.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/tensor.bend&start_line=52&end_line=58 import Base # n copies of 1, then s: s seen with n more leading axes def ones_then(n: Nat, s: List<&2, Nat>) -> List<&2, Nat>: match n: case 0n: s case 1n+p: 1n <> ones_then(p, s) Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat