We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5a532 commit 4230365Copy full SHA for 4230365
1 file changed
src/implementations/truncation.jl
@@ -51,9 +51,7 @@ end
51
52
function findtruncated(values::AbstractVector, strategy::TruncationByFilter)
53
# pre-allocate bitvector to enforce the filter function returns a Bool
54
- mask = similar(BitArray, eachindex(values))
55
- mask .= strategy.filter.(values)
56
- return mask
+ return strategy.filter.(values)::AbstractVector{Bool}
57
end
58
59
function findtruncated(values::AbstractVector, strategy::TruncationByValue)
0 commit comments