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