def byte_count

bend-collections@1.0.0.0 · src/crypto/sha/core.bend:978

import bend-collections@1.0.0.0/src/crypto/sha/core.bend as Core
import Base

978def byte_count(bytes: List<&2, U32>, acc: Nat) -> Nat:
979  match bytes:
980    case Nil{}:
981      acc
982    case h <> t:
983      byte_count(t, 1n+acc)

Uses (3)

Used by (1)