Mac.fits: def of bend-collections@1.0.0.0 Import: import bend-collections@1.0.0.0/src/crypto/mac.bend as Mac Lines 20-29 of bend-collections@1.0.0.0/src/crypto/mac.bend: https://jend.leeeet.dev/read.txt?path=bend-collections@1.0.0.0/src/crypto/mac.bend&start_line=20&end_line=29 import Base # Whether a key fits in the block, looking at no more than 65 of its bytes # (the length of a long key is never computed). def fits(key: List<&2, U32>, n: Nat) -> Bool: match key n: case Nil{} _: True{} case k <> rest 0n: False{} case k <> rest 1n+p: fits(rest, p) Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32