shithub: mc

ref: aa7e3e0a6facd876fea2235ccb6f1ee27e016d3a
dir: /libstd/extremum.myr/

View raw version
pkg std =
	generic min	: (a : @a::tcnum, b : @a::tcnum  -> @a::tcnum)
	generic max	: (a : @a::tcnum, b : @a::tcnum  -> @a::tcnum)
;;

generic min = {a, b
	if a < b
		-> a
	else
		-> b
	;;
}

generic max = {a, b
	if a > b
		-> a
	else
		-> b
	;;
}