Huffman.decode.finish: def of bend-kit-http2@0.4.0.0 Import: import bend-kit-http2@0.4.0.0/huffman.bend as Huffman Lines 1284-1289 of bend-kit-http2@0.4.0.0/huffman.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-http2@0.4.0.0/huffman.bend&start_line=1284&end_line=1289 import Base def decode.finish(m: Maybe<&2, Decoder>) -> Maybe<&2, String>: match m: case None{}: None{} case Some{Decoder{+bits, +width, rev}}: decode.tail(Bool.and(U32.is_le(width, 7), U32.is_eq(bits, ((1 << U32.to_nat(width)) - 1 : U32))), rev) Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String 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_eq https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_le https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.shln https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/huffman.bend&name=Decoder https://jend.leeeet.dev/definition.txt?path=bend-kit-http2@0.4.0.0/huffman.bend&name=decode.tail