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
replace[!]()
count
replace as well as replace! do not work properly if count is supplied:
replace
replace!
julia> replace(ChainedVector([[1,2],[1,2]]), 2=>20; count=1) 6-element ChainedVector{Int64, Vector{Int64}}: 1 20 1 20 julia> replace([1,2,1,2],1=>20,count=1) # expectation 4-element Vector{Int64}: 20 2 1 2
The underlying code just applies the count limitation to each chunk.
Sprinkeling @inbounds on the array get/setindex didn't improve performance, but I should probably add it.
@inbounds
The text was updated successfully, but these errors were encountered:
@quinnj ChainedVectors are used quite a lot downstream, so even such subtle bugs can annoy many users.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
replace
as well asreplace!
do not work properly if count is supplied:The underlying code just applies the count limitation to each chunk.
Sprinkeling
@inbounds
on the array get/setindex didn't improve performance, but I should probably add it.The text was updated successfully, but these errors were encountered: