Re: there is no correct way to use list-sort! or list-stable-sort!
John Cowan 13 Mar 2016 06:15 UTC
Kevin Wortman scripsit:
> +1, it seems to be well-established since at least SRFI 1 that destructive
> operations return their result.
Linear-update routines necessarily return their result, since there is no
guarantee that the object returned is or is not the object passed.
Purely destructive routines, like vector-set!, typically return an
undefined value.
--
My .sigs are from my large and miscellaneous reading both on and off the net.
Occasionally I hear one viva voce or make one up (without attribution,
of course). I try to stay within the McQuary limit, but sometimes fail,
as in this case. In general, the quotes are chosen at random by a script
from <http://www.ccil.org/~cowan/signatures>, but sometimes I choose one
on purpose. I've been collecting and using them for 30+ years.