ref: 516fa1fdca8b62c85deeaf2e3d0b3f826afc8dba 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] sl = slgrow(sl, sl.len - 1) -> (elt, sl) }