shithub: mc

ref: eab5599e480cc900f86acca3d157ad670110d570
dir: /lib/std/sldup.myr/

View raw version
use "alloc.use"
use "die.use"
use "slcp.use"

pkg std =
	generic sldup : (sl : @a[:] -> @a[:])
;;

generic sldup = {sl
	var ret

	ret = slalloc(sl.len)
	slcp(ret, sl)
	-> ret
}