src/utilities.lisp (merge-lists): Make default tie-break sane, and document.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 22 Sep 2015 10:27:11 +0000 (11:27 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 8 Oct 2015 20:45:41 +0000 (21:45 +0100)
commite8c5a09e2a9f3bd85701a15f25ce4b14cb4ad86a
tree915618a6af873e960de12b1941d658a0f6fbbff5
parent022a34998777f988f6dabf871582692353864561
src/utilities.lisp (merge-lists): Make default tie-break sane, and document.

  * Make sure the candidate list given to the tie-breaking `pick'
    function is sorted according to the /first/ list each candidate
    appears in, rather than the last one, because `remove-duplicates' by
    default keeps the last-appearing element of each equivalence class,
    unless I give `:from-end t'.  So do that.

  * Describe the tie-breaking behaviour now that it's sane.  This is
    sort of important because it's used by the output machinery.
src/utilities.lisp