shithub: mc

ref: 51d5a41b3f09a15fef2f427a129f877365d10bf6
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
}