TensorShape.count_nonempty: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_shape.bend as TensorShape Lines 42-45 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=42&end_line=45 import Base def count_nonempty(empty: Bool,extents: List<&2,U32>) -> Maybe<&2,U32>: match empty: case True{}: Some{0} case False{}: product(extents,Some{1}) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool 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=stelliferous@0.0.2.0/tensor_shape.bend&name=product