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

Buggy findfirst(p::Union{Fix2{typeof(==),T}, Fix2{typeof(isequal),T}}, r::StepRange{T,S}) where {T, S}? #33808

Closed
jburgy opened this issue Nov 10, 2019 · 1 comment · Fixed by #33809

Comments

@jburgy
Copy link

jburgy commented Nov 10, 2019

What is the interpretation of the following two executions?

julia> findfirst(==(-7), 1:-1:-10)

julia> findfirst(==(-7), collect(1:-1:-10))
9
@raminammour
Copy link
Contributor

This is wrong too:

julia> findfirst(==(2),1:-1:2)
0

JeffBezanson pushed a commit that referenced this issue Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants