shithub: mc

ref: 0bd2678722f5f70a063190d54d12e62420f02b05
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
}