Skip to content

Commit

Permalink
Update check_voter method for Scala (egonSchiele#79)
Browse files Browse the repository at this point in the history
* add IDE specific git ignore files

* add log for new user
  • Loading branch information
ianshiundu authored and egonSchiele committed Jul 18, 2018
1 parent 48f971e commit fb0d9dc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,16 @@ highlights/node_modules
highlights/atom-language-perl6/
.DS_store
highlights/package-lock.json

# IDE specific
.scala_dependencies
.classpath
*.iml
.idea/
.idea_modules/
.project
.settings/
*.sublime-project
*.sublime-workspace
/.env
atlassian-ide-plugin.xml
1 change: 1 addition & 0 deletions 05_hash_tables/scala/02_check_voter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ def check_voter(name: String): Unit = {
println("kick them out!")
} else{
voted += (name -> true)
println("let them vote!")
}
}
check_voter("tom")
Expand Down

0 comments on commit fb0d9dc

Please sign in to comment.