shithub: mc

ref: 062038c04a1cb9b7b161b670c5a3a948aaed42d1
dir: /libstd/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
}