shithub: mc

ref: aa7e3e0a6facd876fea2235ccb6f1ee27e016d3a
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]
	;;
}