Re: Is keysort/2 stable?

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
I confess that the docs for keysort/2 are poor.  Still, it says:

"The order of multiple elements that have the same Key is not changed."

	Cheers --- Jan

On 08/12/2013 11:56 AM, Boris Vassilev wrote:
> Hello,
>
> a short question: is keysort/2 stable? In other words, is there a guarantee
> that elements with equal keys in the input list of pairs will have the same
> order in the output list? This information might be somewhere in the manual
> already but I could not find it.
>
> Thank you all,
> Boris
> -------------- next part --------------
> HTML attachment scrubbed and removed
> _______________________________________________
> SWI-Prolog mailing list
> [email protected]
> https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.