We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The documentation does not specify what findfirst() should return when its argument consists only of false entries. According to #925, it should be 0.
findfirst()
The reality looks a bit different, though.
julia> findfirst(!,trues(10)) 11 julia> findfirst(falses(10)) 0
So what does findfirst() return upon failure then? 0 or length+1? Something else?
0
length+1
The text was updated successfully, but these errors were encountered:
Version info:
Julia Version 0.3.0-rc4 Commit e844f0c* (2014-08-15 04:01 UTC) Platform Info: System: Linux (x86_64-linux-gnu) CPU: Intel(R) Xeon(R) CPU E31245 @ 3.30GHz WORD_SIZE: 64 BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge) LAPACK: libopenblas LIBM: libopenlibm LLVM: libLLVM-3.3
Sorry, something went wrong.
Looks like a bug in the implementation of findfirst on BitArrays, I'll fix it.
findfirst
3a8da6a
Fix #8025 (findfirst(::Function,::BitArray))
4da495f
Fixed and cherry-picked on the 0.3 release branch. Thanks for the report.
carlobaldassi
No branches or pull requests
The documentation does not specify what
findfirst()
should return when its argument consists only of false entries. According to #925, it should be 0.The reality looks a bit different, though.
So what does
findfirst()
return upon failure then?0
orlength+1
? Something else?The text was updated successfully, but these errors were encountered: