Skip to content

Commit

Permalink
Update src/mapreduce.jl
Browse files Browse the repository at this point in the history
Co-Authored-By: Chris Foster <[email protected]>
  • Loading branch information
tkf and c42f authored Feb 14, 2020
1 parent 4985bcf commit 4ca0144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapreduce.jl
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ _valof(::Val{D}) where D = D
(init = (similar_type(a, Union{}, Size(0))(), init),),
) do (ys, acc), x
y = rf(acc, x)
(vcat(ys, SA[y]), y)
(push(ys, y), y)
end
dims === (:) && return first(results)

Expand Down

0 comments on commit 4ca0144

Please sign in to comment.