shithub: mc

ref: 24584aefe1ada81dc018464bdaa012f5a4f73609
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
}