From fb0d9dccfd7de2e8334d414e744bf03a71214408 Mon Sep 17 00:00:00 2001 From: Ian Shiundu Date: Thu, 19 Jul 2018 02:03:54 +0300 Subject: [PATCH] Update check_voter method for Scala (#79) * add IDE specific git ignore files * add log for new user --- .gitignore | 13 +++++++++++++ 05_hash_tables/scala/02_check_voter.scala | 1 + 2 files changed, 14 insertions(+) diff --git a/.gitignore b/.gitignore index 4be9cb4..938d3f9 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/05_hash_tables/scala/02_check_voter.scala b/05_hash_tables/scala/02_check_voter.scala index b995e20..738e9a0 100644 --- a/05_hash_tables/scala/02_check_voter.scala +++ b/05_hash_tables/scala/02_check_voter.scala @@ -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")