Details
-
Type:
Defect
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: Release 1.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Patch:Code
-
Approval:Ok
Description
clojure.string/join function doesn't work with sets and java collections. This happens because the parameters destructuring is used, and for sets there is no 'nth' function defined that is required for destructuring.
I attached trivial patch that fixed this problem by using first/next functions instead of destructuring
Two possibilities here:
Which is right?
- join requires a sequential thing, and set is not a sequence, so the current behavior is correct.
- join can join any seq-able thing, and we should look at the patch.
Which is right?