Skip to content

Instantly share code, notes, and snippets.

@dabd
Created February 12, 2016 15:51
Show Gist options
  • Save dabd/307cb09dcaa33737b684 to your computer and use it in GitHub Desktop.
Save dabd/307cb09dcaa33737b684 to your computer and use it in GitHub Desktop.
class Bar(i: Int) {
val lst = List.empty[Int]
def copy(i: Int = i, lst: List[Int] = lst) = {
val b = new Bar(i = i)
b.lst = lst
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment