func hasDuplicates*[T](elements: openArray[T]): bool = for i in 0..