[CLJ-1179] distinct? does not accept zero arguments Created: 09/Mar/13 Updated: 04/Jan/14 Resolved: 12/Apr/13
|Affects Version/s:||Release 1.4, Release 1.5|
|Reporter:||Jean Niklas L'orange||Assignee:||Unassigned|
distinct? cannot be invoked with zero arguments. When using the pattern (apply distinct? x), this is bothersome as you have to check whether x is empty or not. It is also logical that distinct? should return true if no arguments are given, since there are no duplicates.
I would expect distinct? to return true whenever given zero arguments.
This was tested under Clojure 1.4 and Clojure 1.5.
|Comment by Jean Niklas L'orange [ 09/Mar/13 6:08 AM ]|
Attached the straightforward patch which solves this issue.
|Comment by Devin Walters [ 04/Jan/14 1:32 PM ]|
Is there a reason this was closed without a comment?
|Comment by Alex Miller [ 04/Jan/14 2:12 PM ]|
Rich declined it, implying that it was not a change he wanted. Not sure of the reason.