shithub: mc

ref: 58d89cfed95d30bcd7fdfed4973237121803ad70
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
}