def all_inside
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signedimport Base
70def all_inside(+limit: U32, positions: List<&2, Position>) -> Bool:
71 match positions:
72 case Nil{}:
73 True{}
74 case head <> tail:
75 Bool.and(inside(limit, head), all_inside(limit, tail))