Tables.Table.get.go: def of bend-lint-api@0.2.0.0 Import: import bend-lint-api@0.2.0.0/shared/tables.bend as Tables Lines 12-20 of bend-lint-api@0.2.0.0/shared/tables.bend: https://jend.leeeet.dev/read.txt?path=bend-lint-api@0.2.0.0/shared/tables.bend&start_line=12&end_line=20 import Base # The value numbered `i` in `t`: `odd` is whether `i` is. def Table.get.go(-A: Data, t: Table, +i: U32, odd: Bool) -> Maybe<&2, A>: match t odd: case TLeaf{v} _: Bool.pick(Maybe<&2, A>, U32.is_zero(i), v, None{}) case TNode{e, o} False{}: Table.get.go(A, e, U32.shr(i), U32.is_eq(U32.and(U32.shr(i), 1), 1)) case TNode{e, o} True{}: Table.get.go(A, o, U32.shr(i), U32.is_eq(U32.and(U32.shr(i), 1), 1)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.pick 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.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_zero https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shr https://jend.leeeet.dev/definition.txt?path=bend-lint-api@0.2.0.0/shared/tables.bend&name=Table