Skip to content

Instantly share code, notes, and snippets.

@igorwojda
Last active June 7, 2019 12:14
Show Gist options
  • Save igorwojda/42c3391b4bfb3527a368be4065867f77 to your computer and use it in GitHub Desktop.
Save igorwojda/42c3391b4bfb3527a368be4065867f77 to your computer and use it in GitHub Desktop.
Side effects - modify variable outside function
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