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