shithub: mc

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