Skip to content

Commit 8082318

Browse files
committed
Merge pull request #260 from justinj/fix-set-seqing
Implement -seq for sets the same way as maps
2 parents 6993adc + 5c5732b commit 8082318

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pixie/stdlib.pxi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,9 @@ If further arguments are passed, invokes the method named by symbol, passing the
959959
(fn [v]
960960
(transduce cat unordered-hash-reducing-fn v)))
961961

962-
(extend -seq PersistentHashSet (fn [self] (seq (iterator self))))
962+
(extend -seq PersistentHashSet
963+
(fn [s]
964+
(reduce conj nil s)))
963965

964966
(extend -str PersistentHashSet
965967
(fn [s]

0 commit comments

Comments
 (0)