Bytes.Octets.split_at.pick: def of bend-osdev-bytes@0.1.1.1 Import: import bend-osdev-bytes@0.1.1.1/bytes.bend as Bytes Lines 635-640 of bend-osdev-bytes@0.1.1.1/bytes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&start_line=635&end_line=640 import Base def Octets.split_at.pick(fits: Bool, +n: Nat, +o: Octets) -> Maybe<&2, OctetsSplit>: match fits: case True{}: Some{OctetsSplit{Octets.take(n, o), Octets.drop(n, o)}} case False{}: None{} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat 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.take https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=OctetsSplit