shithub: mc

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

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

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

generic sldup = {sl
	var ret

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