Skip to content

Instantly share code, notes, and snippets.

@michalkowol
Created November 28, 2014 14:28
Show Gist options
  • Save michalkowol/c8c78a917e8a794cfdf9 to your computer and use it in GitHub Desktop.
Save michalkowol/c8c78a917e8a794cfdf9 to your computer and use it in GitHub Desktop.
val s = Array(1 ,2, 3) // s: Array[Int] = Array(1, 2, 3)
def testCase(s: Seq[Int]) = s // testCase: TestCase[](val s: Seq[Int]) => Seq[Int]
testCase(s) // res0: Seq[Int] = WrappedArray(1, 2, 3)
s(0) = 7 // res1: Unit = ()
testCase(s) // res2: Seq[Int] = WrappedArray(7, 2, 3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment