Jpeg.jpeg.components.complete: def of gralha-jpeg-decode@0.1.0.1 Import: import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpeg Lines 737-740 of gralha-jpeg-decode@0.1.0.1/jpeg.bend: https://jend.leeeet.dev/read.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&start_line=737&end_line=740 import Base import gralha-bytes@0.1.0.1/bytes.bend as Bin def jpeg.components.complete(xs: List<&2, JPEGComponent>) -> Bool: match xs: case Nil{}: True{} case Con{JPEGComponent{_, _, _, _, _, _, _, _, _, _, samples}, rest}: U32.is_gt(Bin.bytes.get(samples, 0), 0) && jpeg.components.complete(rest) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_gt https://jend.leeeet.dev/definition.txt?path=gralha-bytes@0.1.0.1/bytes.bend&name=bytes.get https://jend.leeeet.dev/definition.txt?path=gralha-jpeg-decode@0.1.0.1/jpeg.bend&name=JPEGComponent