Signed.inside: def of bendtorch-core@0.1.0.0 Import: import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signed Lines 61-68 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=61&end_line=68 import Base # Whether a position lies in PyTorch's range -limit..limit-1. Last{k} is # -1 - k, at least -limit exactly when k < limit. def inside(+limit: U32, position: Position) -> Bool: match position: case First{k}: U32.is_lt(k, limit) case Last{k}: U32.is_lt(k, limit) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_lt https://jend.leeeet.dev/definition.txt?path=bendtorch-core@0.1.0.0/src/tensor/signed.bend&name=Position