Created
November 28, 2014 14:28
-
-
Save michalkowol/c8c78a917e8a794cfdf9 to your computer and use it in GitHub Desktop.
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 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