In reply to rgarcia07:
Yes, there are two ways you can do this
By wrapping the function in a class.
class relations #(type T);
static function T Max(T a,b);
return a < b ? b:a;
endfunction
static function T Min(T a,b);
return a < b ? a:b;
endfunction
endclass
By using the let construct
let Max(a,b) = a < b ? b:a;