question about list utilities



Whoops, sorry.

return(last(sort(list)))

BTW,
  for some reason, is it equivalent in terms of speed, to do

return(last(sort(list))) or

l1: sort(list),
return(last(l1))

-sen


  ---------------------------------------------------------------------------
  | Sheldon E. Newhouse            |    e-mail: sen1 at math.msu.edu           |
  | Mathematics Department         |       				   |
  | Michigan State University      | telephone: 517-355-9684                |
  | E. Lansing, MI 48824-1027 USA  |       FAX: 517-432-1562                |
  ---------------------------------------------------------------------------

On Thu, 12 Apr 2007, Stavros Macrakis wrote:

>>
>>            sort(list),
>>            return(last(list))
>> 
>
> PS This won't work: sort does not modify the original list; it returns a
> sorted copy.
>