Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

value force is not a member of Seq[(Int, Int)] #10200

Closed
scabug opened this issue Feb 21, 2017 · 4 comments
Closed

value force is not a member of Seq[(Int, Int)] #10200

scabug opened this issue Feb 21, 2017 · 4 comments

Comments

@scabug
Copy link

scabug commented Feb 21, 2017

@ Array(1).view.zipWithIndex.collect{case a=>a}.force 
cmd39.sc:1: value force is not a member of Seq[(Int, Int)]
val res39 = Array(1).view.zipWithIndex.collect{case a=>a}.force
                                                          ^
Compilation Failed
@ Seq(1).view.zipWithIndex.collect{case a=>a}.force 
res39: Seq[(Int, Int)] = List((1, 0))
@scabug
Copy link
Author

scabug commented Feb 21, 2017

Imported From: https://issues.scala-lang.org/browse/SI-10200?orig=1
Reporter: 张志豪 (zhangzhihao)

@scabug
Copy link
Author

scabug commented Mar 15, 2017

@SethTisue said:
should go away when http://github.com/scala/collection-strawman gets merged into 2.13

@scabug scabug added this to the 2.13.0-RC1 milestone Apr 7, 2017
@xuwei-k
Copy link

xuwei-k commented Jul 16, 2018

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))

@julienrf
Copy link

julienrf commented Jul 16, 2018

I guess we can close that issue, now?

@SethTisue SethTisue modified the milestones: 2.13.0-RC1, 2.13.0-M5 Aug 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants