partially implement FUNCTION,APPLY,FUNCALL, use for MIN,MAX