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