def fold
import bend-collections@1.0.0.0/src/crypto/blake/blake3/compress.bend as Compressimport Base
import bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend as T
98def fold(s: T.St) -> T.CV:
99 match s:
100 case T.St{v0,v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15}:
101 T.CV{U32.xor(v0,v8),U32.xor(v1,v9),U32.xor(v2,v10),U32.xor(v3,v11),U32.xor(v4,v12),U32.xor(v5,v13),U32.xor(v6,v14),U32.xor(v7,v15)}