We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77d6c77 commit 76a19edCopy full SHA for 76a19ed
src/clj/cljc/compiler.clj
@@ -445,7 +445,9 @@
445
446
(defmethod emit :set
447
[{:keys [items env]}]
448
- (FIXME-IMPLEMENT))
+ (let [item-names (doall (map emit items))]
449
+ (emit-value-wrap :set env
450
+ (emits (persistent-hash-set-emit-seq item-names)))))
451
452
(defmethod emit :constant
453
[{:keys [form env]}]
test/clojurec/core_test.clj
@@ -483,8 +483,7 @@
483
(pr \a \b) (pr " ")
484
(pr '(1 2 3)) (pr " ")
485
(pr (make-array 2)) (pr " ")
486
- (pr (set (list 1 2 3)))
487
- (pr (hash-set 1 2 3))))
+ (pr #{1 2 3})))
488
[true false
489
-1 0 1
490
'a 'b
@@ -493,7 +492,6 @@
493
492
\a \b
494
'(1 2 3)
495
[nil nil]
496
- #{1 2 3}
497
#{1 2 3}]))))
498
499
(deftest equality
0 commit comments