ref: 535fc2200adec1ee488de3f496781017fb1b55b2 dir: /lib/std/slpop.myr/
use "types" use "alloc" pkg std = generic slpop : (sl : @a[:] -> (@a, @a[:])) ;; generic slpop = {sl var elt elt = sl[sl.len - 1] slgrow(&sl, sl.len - 1) -> (elt, sl) }