shithub: mc

ref: 0556b63c0c444d2d77b270c7d51beb7e94f0d30a
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
}