shithub: mc

ref: 4fb00e671f84192b77bbca4c095b5c5cdf755e31
dir: /libstd/slcp.myr/

View raw version
use "die.use"

pkg std =
	generic slcp : (a : @a[:], b : @a[:] -> void)
;;

generic slcp = {a, b
	var i

	assert(a.len == b.len, "arguments to slcp() must be of equal length")

	for i = 0; i < a.len; i++
		a[i] = b[i]
	;;
}