You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Array(1).view.zipWithIndex.collect{case a=>a}.force
cmd39.sc:1: value force is not a member of Seq[(Int, Int)]
valres39=Array(1).view.zipWithIndex.collect{case a=>a}.force
^
CompilationFailed@Seq(1).view.zipWithIndex.collect{case a=>a}.force
res39:Seq[(Int, Int)] =List((1, 0))
The text was updated successfully, but these errors were encountered:
Welcome to Scala 2.13.0-M4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.8.0_172).
Type in expressions for evaluation. Or try :help.
scala> Seq(1).view.zipWithIndex.collect{case a=>a}.force
^
warning: method force in trait View is deprecated (since 2.13.0): Views no longer know about their underlying collection type; .force always returns an IndexedSeq
res0: scala.collection.IndexedSeq[(Int, Int)] = Vector((1,0))
scala> Array(1).view.zipWithIndex.collect{case a=>a}.force
^
warning: method force in trait View is deprecated (since 2.13.0): Views no longer know about their underlying collection type; .force always returns an IndexedSeq
res1: scala.collection.IndexedSeq[(Int, Int)] = Vector((1,0))
The text was updated successfully, but these errors were encountered: