def pcs.hash
import bend-kit-regex@0.8.0.0/regex.bend as Regeximport Base
1551def pcs.hash(xs: List<&2, U32>, +h: U32) -> U32:
1552 match xs:
1553 case Nil{}:
1554 h
1555 case Con{+pc, rest}:
1556 pcs.hash(rest, (U32.xor(h, pc) * 16777619 : U32))