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