Vec.Vec.pop: def of bend-kit-collections@0.1.4.1 Import: import bend-kit-collections@0.1.4.1/vec.bend as Vec Lines 100-106 of bend-kit-collections@0.1.4.1/vec.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-collections@0.1.4.1/vec.bend&start_line=100&end_line=106 import Base # The last element, and the vector without it. The buffer keeps its size. def Vec.pop(~T: Data, v: Vec) -> Vec & Maybe<&2, T>: match v: case VNil{}: (VNil{}, None{}) case Vec{+n, buf}: Vec.pop.if(~T, U32.is_zero(n), n, buf) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Sigma https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_zero https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/vec.bend&name=Vec https://jend.leeeet.dev/definition.txt?path=bend-kit-collections@0.1.4.1/vec.bend&name=Vec.pop.if