def finish
import bend-collections@1.0.0.0/spec/crypto/keccak/main.bend as BendCollectionsimport Base
import bend-collections@1.0.0.0/src/crypto/keccak/types.bend as T
57def finish(round_count: Nat, a: Array<U32>, +index: U32, remain: Nat, s: T.State) -> T.State:
58 Pair.snd(Array<U32>,T.State,gather(round_count,33n,index,1,True{},remain,s,Nil{},Array.get(U32,a,index)))