Hex.Digit.has_bit2: def of bend-trace-context@0.2.0.0 Import: import bend-trace-context@0.2.0.0/src/hex.bend as Hex Lines 216-250 of bend-trace-context@0.2.0.0/src/hex.bend: https://jend.leeeet.dev/read.txt?path=bend-trace-context@0.2.0.0/src/hex.bend&start_line=216&end_line=250 import Base # Whether bit 2 (value 4) of the digit is set. def Digit.has_bit2(digit: Digit) -> Bool: match digit: case H0{}: False{} case H1{}: False{} case H2{}: False{} case H3{}: False{} case H4{}: True{} case H5{}: True{} case H6{}: True{} case H7{}: True{} case H8{}: False{} case H9{}: False{} case Ha{}: False{} case Hb{}: False{} case Hc{}: True{} case Hd{}: True{} case He{}: True{} case Hf{}: True{} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=bend-trace-context@0.2.0.0/src/hex.bend&name=Digit