josephivie
fun <T> List<T>.hasDuplicate():Boolean{ val set = HashSet<T>() return any { !set.add(it) } }