def inside
import bendtorch-core@0.1.0.0/src/tensor/gather_LAWS.bend as GatherLAWSimport Base
39# Whether every entry lies below the extent.
40def inside(entries: List<&2, U32>, +bound: Nat) -> Bool:
41 match entries:
42 case Nil{}:
43 True{}
44 case head <> rest:
45 Bool.and(Nat.is_lt(U32.to_nat(head), bound), inside(rest, bound))
Uses (7)
Used by (6)
- bendtorch-core@0.1.0.0/src/tensor/gather_PROOF:below_is
- bendtorch-core@0.1.0.0/src/tensor/gather_PROOF:below_inside
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_out_of_range
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:gather_planned
- bendtorch-core@0.1.0.0/src/tensor/gather_LAWS:index_select_out_of_range
- …