BatchedMatmulLAWS.columns_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 326-334 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=326&end_line=334 import Base # The last extent: the columns of a matrix. def columns_of(dims: List<&2, Nat>) -> Nat: match dims: case +x <> Nil{}: x case +x <> +y <> tail: columns_of(y <> tail) case Nil{}: 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