def jpeg.quant.find

gralha-jpeg-decode@0.1.0.1 · jpeg.bend:126

import gralha-jpeg-decode@0.1.0.1/jpeg.bend as Jpeg
import Base
import gralha-text-scan@0.1.0.1/scan.bend as U
import gralha-bytes@0.1.0.1/bytes.bend as Bin

126def jpeg.quant.find(xs: List<&2, JPEGQuant>, +id: U32) -> Bin.Bytes:
127  match xs:
128    case Nil{}: Bin.bytes.empty()
129    case Con{JPEGQuant{key, values}, rest}: U.branch(Bin.Bytes, U32.is_eq(key, id), _ => values, _ => jpeg.quant.find(rest, id))

Uses (7)

Used by (2)