[CLJ-1179] distinct? does not accept zero arguments Created: 09/Mar/13 Updated: 12/Apr/13 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.