ref: 3de36cf522da6e8fdb102fb1169465cbbabb3df4 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) }