Huffman.decode.step: def of bend-kit-http2@0.4.0.0 Import: import bend-kit-http2@0.4.0.0/huffman.bend as Huffman Lines 1246-1254 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=1246&end_line=1254 import Base def decode.step(n: Nat, +byte: U32, d: Decoder) -> Maybe<&2, Decoder>: match n: case 0n: Some{d} case 1n+p: +p = p do Maybe<&2, Decoder>: next: Decoder <- decode.bit(d, ((byte >> p) .&. 1 : U32)) decode.step(p, byte, next) Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe.bind https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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.shrn 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.bit