val voted:HashMap = HashMap() fun checkVoter(name: String) { if(!voted.containsKey(name)){ voted.put(name, true) println("let them vote!") } else { println("kick them out!") } } fun main(args: Array) { checkVoter("tom") checkVoter("mike") checkVoter("mike") }