ref: 76c34b542f0b5c0cd6cc60a9cef9d53b6fc899d1
dir: /lib/std/slput.myr/
use "types" use "alloc" use "die" pkg std = generic slput : (sl : @a[:], idx : size, elt : @a -> @a[:]) ;; generic slput = {sl, idx, elt var i var len len = sl.len slgrow(&sl, sl.len + 1) for i = len - 1; i >= idx; i-- sl[i + 1] = sl[i] ;; sl[idx] = elt -> sl }