def rounds
import bend-collections@1.0.0.0/spec/crypto/keccak/permutation.bend as Permutationimport Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T
108def rounds(n: Nat, +i: Nat, s: T.State) -> T.State:
109 match n:
110 case 0n: s
111 case 1n+p: rounds(p,1n+i,round(s,constant(i)))