shithub: mc

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