shithub: mc

ref: f3af31e4d40d749bddf67c793cd32602c14d586e
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
}