def last_chunk
import bend-collections@1.0.0.0/src/crypto/blake/blake3/blake3.bend as Blake3import Base
import bend-collections@1.0.0.0/src/crypto/blake/blake3/types.bend as T
131def last_chunk(a: Array<U32>, +counter: U32, +index: U32, +len: Nat) -> Array<U32> & T.Out:
132 +n = Nat.div(Nat.sub(len,1n),64n)
133 last_go(n,counter,index,1,Nat.sub(len,Nat.mul(n,64n)),iv(),read_block(a,index))