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