BendCollections.low_tail: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/spec/crypto/keccak/main.bend as BendCollections Lines 8-14 of bend-collections@1.0.0.0/spec/crypto/keccak/main.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/spec/crypto/keccak/main.bend&start_line=8&end_line=14 import Base def low_tail(w: U32, n: Nat) -> U32: match n: case 0n: 1 case 1n: U32.or(U32.and(w,255),256) case 2n: U32.or(U32.and(w,65535),65536) case 3n: U32.or(U32.and(w,16777215),16777216) case _: w Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or