shithub: mc

ref: 151ac13992ccc9c1b02c3fa32a36c2588edcc2f5
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
}