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

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

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

This comment has been minimized.

Copy link
Author

scabug commented Sep 26, 2016

@scabug scabug closed this Sep 30, 2016

@scabug

This comment has been minimized.

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