Hi Rowan,
> first sentence at http://www.software-lab.de/doc/refS.html#sort
> changed from:
>
> > Sorts lst by destructively exchanging its elements.
>
> to something more explicit like:
>
> > Returns a sorted lst by destructively exchanging the original lst's
> > elements.
Good idea! Thanks!
On 30 September 2016 at 20:24, Alexander Burger wrote:
> Hi Rowan,
>
> the explanation is simple.
> ...
> It is the *return* value of 'sort' which is relevant:
> ...
Ah, [facepalm], thanks. Because I hadn't used picolisp for a while,
when I first used (sort) again in a new context I saw the alter
Hi Rowan,
the explanation is simple.
> (println A) (sort A) (println A)
This is not the right way. Though 'sort' works destructively, this does
not mean that it sorts the cells in-place. It is the *return* value of
'sort' which is relevant:
(println A)
(println (sort A))
or
(println