shithub: mc

ref: c7e6d109bcd7e0d0b33c5e134c83e3efe9154ef9
dir: /lib/std/swap.myr/

View raw version
pkg std =
	generic swap	: (a : @a#, b : @a# -> void)
;;

generic swap = {a : @a#, b : @a#
	var t

	t = a#
	a# = b#
	b# = t
}