BatchedMatmulLAWS.rows_of: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend as BatchedMatmulLAWS Lines 316-324 of bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/batched_matmul_LAWS.bend&start_line=316&end_line=324 import Base # The extent before the last: the rows of a matrix. def rows_of(dims: List<&2, Nat>) -> Nat: match dims: case +x <> +y <> Nil{}: x case +x <> +y <> +z <> tail: rows_of(y <> z <> tail) case rest: 0n 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