shithub: mc

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