def fold

bend-collections@1.0.0.0 · src/crypto/hash.bend:525

import bend-collections@1.0.0.0/src/crypto/hash.bend as Hash
import 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))

Uses (4)

Used by (1)