Skip to content

Conversation

jridgewell
Copy link
Collaborator

Closes #1882.

@jashkenas
Copy link
Owner

Parity sure — but are there any real-world use cases for this?

@jridgewell
Copy link
Collaborator Author

Just _.lastIndexOf supporting binary search.

@jgonggrijp
Copy link
Collaborator

I'm favor of having both lower bound and upper bound variants of binary search, but the underlying implementation should take a binary compare predicate instead of a boolean flag that lets you choose only between < and <=.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_.sortedLastIndex
3 participants