summaryrefslogtreecommitdiff
path: root/libstd/swap.myr
blob: e3923c94d2e577e325832908443c6fdf8ac108fa (plain)
1
2
3
4
5
6
7
8
9
10
11
pkg std =
	generic swap	: (a : @a#, b : @a# -> void)
;;

generic swap = {a : @a#, b : @a#
	var t

	t = a#
	a# = b#
	b# = t
}