MinMax

MinMax[l] returns {Min[l], Max[l]}.

Attributes[MinMax] := {Protected}

Simple examples

In[1]:= MinMax[Range[5]]
Out[1]= {1, 5}