Sorts array and checks if it contains at least one duplicate.
Template params: T = type of array element sort = true: do array.sort first; false: array is already sorted
array to clean from duplicate values
true if array contains a duplicate or false if not. Returns false if array is empty.
See Implementation
Sorts array and checks if it contains at least one duplicate.
Template params: T = type of array element sort = true: do array.sort first; false: array is already sorted