shithub: mc

ref: bd225cf9a9ec5a2d3bd35c067d011729d8fb9ae0
dir: /libstd/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
}