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