[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Could sort return its result?
- From: Reuben Thomas <rrt@...>
- Date: Fri, 17 May 2002 20:35:32 +0100
> > At the moment, sort seems to return nothing. Could it return its result
> > instead? This is useful for idioms such as
> > return sort (...)
> Our concern is that such idiom may lead users to forget that sort does
> its job in place.
Fair enough. I'm happy to have my own wrapper for sort which does
return the result (and I suppose I should also *not* sort in-place, so
that it is properly functional).
http://www.mupsych.org/rrt/ | art, n. romanticized mundanity