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

SeqLike.indexWhere fumbles negative start #9936

Closed
scabug opened this issue Sep 26, 2016 · 3 comments
Closed

SeqLike.indexWhere fumbles negative start #9936

scabug opened this issue Sep 26, 2016 · 3 comments

Comments

@scabug
Copy link

scabug commented Sep 26, 2016

As gittered https://gitter.im/scala/scala?at=57e986c2ea1b6b1a6c6d5d1f

scala> "abcde".indexOf('c', -1)
res0: Int = 2

scala> "abcde".indexOf('c', -2)
res1: Int = 2

scala> "abcde".toVector.indexOf('c', -1)
res2: Int = 1

scala> "abcde".toVector.indexOf('c', -2)
res3: Int = 0
@scabug
Copy link
Author

scabug commented Sep 26, 2016

Imported From: https://issues.scala-lang.org/browse/SI-9936?orig=1
Reporter: @som-snytt
Affected Versions: 2.12.0-RC1

@scabug
Copy link
Author

scabug commented Sep 26, 2016

@som-snytt said:
scala/scala#5421

@scabug scabug closed this as completed Sep 30, 2016
@scabug
Copy link
Author

scabug commented Jan 3, 2017

@lrytz said:
follow-up for LinearSeqOptimized in scala/scala#5621

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

2 participants