shithub: mc

ref: 3e51d386096b13c255d6aec4406f85548e9e7d63
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
	;;
}