Signed.inferred_count: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed Lines 82-90 of bendtorch-core@0.1.0.0/src/tensor/signed.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&start_line=82&end_line=90 import Base # How many sizes are Inferred. def inferred_count(extents: List<&2, Extent>) -> Nat: match extents: case Nil{}: 0n case Exact{size} <> tail: inferred_count(tail) case Inferred{} <> tail: 1n+inferred_count(tail) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&name=Extent