Last active
June 7, 2019 12:14
-
-
Save igorwojda/42c3391b4bfb3527a368be4065867f77 to your computer and use it in GitHub Desktop.
Side effects - modify variable outside 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
val patient:Patient? = null | |
fun setPatient(patient:Patient) { | |
this.patient = patient | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment