Created
October 21, 2017 13:14
-
-
Save igorwojda/83a7e5f10a35e5ba452bfbaacb95643e to your computer and use it in GitHub Desktop.
Side effects - modify variable outside the function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun sum (a:Int, b:Int): Int { | |
log.info("Added $a + $b") | |
return a + b | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment