@@ -5,7 +5,7 @@ object Test {
55 import colltest5 .strawman .collections .*
66 import CollectionStrawMan5 .*
77
8- def seqOps (xs : Seq [Int ]) = { // try with Seq[Int]{ref any}
8+ def seqOps (xs : Seq [Int ]) = { // try with Seq[Int]^{ any}
99 val strPlusInt : (String , Int ) => String = _ + _
1010 val intPlusStr : (Int , String ) => String = _ + _
1111 val isEven : Int => Boolean = _ % 2 == 0
@@ -61,7 +61,7 @@ object Test {
6161 println(xs16)
6262 }
6363
64- def viewOps (xs : View [Int ]{ref any}) = {
64+ def viewOps (xs : View [Int ]^ { any}) = {
6565 val strPlusInt : (String , Int ) => String = _ + _
6666 val intPlusStr : (Int , String ) => String = _ + _
6767 val isEven : Int => Boolean = _ % 2 == 0
@@ -78,27 +78,27 @@ object Test {
7878 val x5 = xs.to(List )
7979 val y5 : List [Int ] = x5
8080 val (xs6, xs7) = xs.partition(isEven)
81- val ys6 : View [Int ]{ref xs6, isEven} = xs6
82- val ys7 : View [Int ]{ref xs7, isEven} = xs7
81+ val ys6 : View [Int ]^ { xs6, isEven} = xs6
82+ val ys7 : View [Int ]^ { xs7, isEven} = xs7
8383 val (xs6a, xs7a) = xs.partition(_ % 2 == 0 )
84- val ys6a : View [Int ]{ref xs6} = xs6
85- val ys7a : View [Int ]{ref xs7} = xs7
84+ val ys6a : View [Int ]^ { xs6} = xs6
85+ val ys7a : View [Int ]^ { xs7} = xs7
8686 val xs8 = xs.drop(2 )
87- val ys8 : View [Int ]{ref xs8} = xs8
87+ val ys8 : View [Int ]^ { xs8} = xs8
8888 val xs9 = xs.map(isNonNeg)
89- val ys9 : View [Boolean ]{ref xs9} = xs9
89+ val ys9 : View [Boolean ]^ { xs9} = xs9
9090 val xs10 = xs.flatMap(flips)
91- val ys10 : View [Int ]{ref xs10} = xs10
91+ val ys10 : View [Int ]^ { xs10} = xs10
9292 val xs11 = xs ++ xs
93- val ys11 : View [Int ]{ref xs11} = xs11
93+ val ys11 : View [Int ]^ { xs11} = xs11
9494 val xs12 = xs ++ Nil
95- val ys12 : View [Int ]{ref xs12} = xs12
95+ val ys12 : View [Int ]^ { xs12} = xs12
9696 val xs13 = Nil ++ xs
9797 val ys13 : List [Int ] = xs13
9898 val xs14 = xs ++ Cons (" a" , Nil )
99- val ys14 : View [Any ]{ref xs14} = xs14
99+ val ys14 : View [Any ]^ { xs14} = xs14
100100 val xs15 = xs.zip(xs9)
101- val ys15 : View [(Int , Boolean )]{ref xs15} = xs15
101+ val ys15 : View [(Int , Boolean )]^ { xs15} = xs15
102102 println(" -------" )
103103 println(x1)
104104 println(x2)
0 commit comments