TensorView.address_when: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/tensor_view.bend as TensorView Lines 14-19 of stelliferous@0.0.2.0/tensor_view.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/tensor_view.bend&start_line=14&end_line=19 import Base # Successful addresses are below logical_length. The checked product and the # remaining-room comparison prevent multiplication and addition from wrapping. def address_when(valid: Bool,offset: U32,increment: U32) -> Maybe<&2,U32>: match valid: case False{}: None{} case True{}: Some{(offset + increment : U32)} 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=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add