def fold
import bend-collections@1.0.0.0/src/crypto/hash.bend as Hashimport Base
525def fold(chunks: List<&2, List<&2, U32>>, h: Hasher) -> Hasher:
526 match chunks:
527 case Nil{}:
528 h
529 case c <> rest:
530 fold(rest, update(h, c))