Update check_voter method for Scala (#79)
* add IDE specific git ignore files * add log for new user
This commit is contained in:
committed by
Aditya Bhargava
parent
48f971e361
commit
fb0d9dccfd
13
.gitignore
vendored
13
.gitignore
vendored
@@ -27,3 +27,16 @@ highlights/node_modules
|
|||||||
highlights/atom-language-perl6/
|
highlights/atom-language-perl6/
|
||||||
.DS_store
|
.DS_store
|
||||||
highlights/package-lock.json
|
highlights/package-lock.json
|
||||||
|
|
||||||
|
# IDE specific
|
||||||
|
.scala_dependencies
|
||||||
|
.classpath
|
||||||
|
*.iml
|
||||||
|
.idea/
|
||||||
|
.idea_modules/
|
||||||
|
.project
|
||||||
|
.settings/
|
||||||
|
*.sublime-project
|
||||||
|
*.sublime-workspace
|
||||||
|
/.env
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ def check_voter(name: String): Unit = {
|
|||||||
println("kick them out!")
|
println("kick them out!")
|
||||||
} else{
|
} else{
|
||||||
voted += (name -> true)
|
voted += (name -> true)
|
||||||
|
println("let them vote!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
check_voter("tom")
|
check_voter("tom")
|
||||||
|
|||||||
Reference in New Issue
Block a user