Core.tail: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/sha3/core.bend as Core Lines 25-33 of bend-collections@1.0.0.0/src/crypto/sha3/core.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/sha3/core.bend&start_line=25&end_line=33 import Base # 0x06, zeros, 0x80 up to the end of the block (0x86 when one byte is left). def tail(q: Nat) -> List<&2, U32>: match q: case 0n: Nil{} case 1n: [134] case 2n+k: 6 <> List.append(&2, U32, List.replicate(U32, k, 0), [128]) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.replicate https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32