Created
October 21, 2017 13:42
-
-
Save igorwojda/e9ad6502bf7597f2094038592a6f4ce1 to your computer and use it in GitHub Desktop.
Side effects - calling other side effecting function
This file contains hidden or 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 sumMe(a:Int): Int { | |
return sum(a, a) | |
} | |
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