Core.fit: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/shape/core.bend as Core Lines 342-351 of bendtorch-core@0.1.0.0/src/shape/core.bend: https://jend.leeeet.dev/read.txt?path=bendtorch-core@0.1.0.0/src/shape/core.bend&start_line=342&end_line=351 import Base def fit(dims: List<&2, Nat>, values: List<&2, Nat>) -> Bool: match dims values: case Nil{} Nil{}: True{} case dh <> dt vh <> vt: Bool.and(Nat.is_lt(vh, dh), fit(dt, vt)) case Nil{} vh <> vt: False{} case dh <> dt Nil{}: False{} 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=Bool.and 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=Base/base.bend&name=Nat.is_lt