Uploaded image for project: 'Clojure'
  1. CLJ-2417

sort and sort-by should retain meta

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Completed
    • Affects versions: Release 1.10
    • Fix versions: Release 1.10
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      sort and sort-by don't conceptually change the contents of their source. It would be useful if they retained meta while reordering their contents.

      user=> (meta (sort (with-meta (range 10) {:a true})))
      nil
      

      Patch: clj-2417.patch

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alexmiller Alex Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: