Check.last8: def of bend-osdev-cast5@0.1.0.0 Import: import bend-osdev-cast5@0.1.0.0/check.bend as Check Lines 64-69 of bend-osdev-cast5@0.1.0.0/check.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-cast5@0.1.0.0/check.bend&start_line=64&end_line=69 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L def last8(r: Result<&2, &2, L.LcError, B.Octets>) -> String: match r: case Fail{e}: err(e) case Done{+o}: B.Octets.hex(B.Octets.drop(Nat.sub(B.Octets.len(o), 8n), o)) Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.sub https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.drop https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.hex https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets.len https://jend.leeeet.dev/definition.txt?path=bend-osdev-cast5@0.1.0.0/check.bend&name=err https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&name=LcError