TensorShape.broadcast_same_rank: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_shape.bend as TensorShape Lines 66-71 of stelliferous@0.0.2.0/tensor_shape.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_shape.bend&start_line=66&end_line=71 import Base def broadcast_same_rank(left: List<&2,U32>,right: List<&2,U32>) -> Maybe<&2,List<&2,U32>>: match left right: case Nil{} Nil{}: Some{[]} case Con{+x,xs} Con{+y,ys}: prepend_extent(broadcast_extent(U32.is_eq(x,y),U32.is_eq(x,1),U32.is_eq(y,1),x,y),broadcast_same_rank(xs,ys)) case left right: None{} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_shape.bend&name=broadcast_extent https://jend.leeeet.dev/definition.txt?path=stelliferous@0.0.2.0/tensor_shape.bend&name=prepend_extent