ClojureScript

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

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: 1.10.238
  • Fix Version/s: None
  • Component/s: None
  • Labels:

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}

Activity

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: