shithub: mc

ref: 1ee90265d5f764cb54b49531c4b247c5f404491c
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
}