Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Created October 21, 2017 13:14
Show Gist options
  • Save igorwojda/83a7e5f10a35e5ba452bfbaacb95643e to your computer and use it in GitHub Desktop.
Save igorwojda/83a7e5f10a35e5ba452bfbaacb95643e to your computer and use it in GitHub Desktop.
Side effects - modify variable outside the function
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