Uploaded image for project: 'ClojureScript'
  1. CLJS-2736

Elements returned from sets as functions are not the actual elements in the set.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: 1.10.238
    • Fix versions: None
    • Labels:
      None

      Description

      When a set called as a function returns an element, then the argument is returned rather than the element of the set. This is apparent when the values have metadata:

      => (def my-set #{(with-meta [:a] {:n 42})})
      => (meta (my-set [:a]))
      nil
      => (meta (my-set (with-meta [:a] {:x 1})))
      {:x 1}
      

        Attachments

          Activity

            People

            • Assignee:
              dnolen David Nolen
              Reporter:
              quoll Paula Gearon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: