Codec.notices.enc: def of bend-kit-postgres@0.3.0.0 Import: import bend-kit-postgres@0.3.0.0/codec.bend as Codec Lines 165-170 of bend-kit-postgres@0.3.0.0/codec.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-postgres@0.3.0.0/codec.bend&start_line=165&end_line=170 import Base import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes def notices.enc(xs: List<&1, Notice>) -> List<&1, Bytes.Bytes>: match xs: case Nil{}: [byte1(0)] case Con{Notice{+k, v}, t}: Con{Bytes.append(byte1(k), cstr.enc(v)), notices.enc(t)} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=append https://jend.leeeet.dev/definition.txt?path=bend-kit-postgres@0.3.0.0/codec.bend&name=Notice https://jend.leeeet.dev/definition.txt?path=bend-kit-postgres@0.3.0.0/codec.bend&name=byte1 https://jend.leeeet.dev/definition.txt?path=bend-kit-postgres@0.3.0.0/codec.bend&name=cstr.enc