From 4ca01444f4602cc656ab467c38d7acaef15839c7 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Thu, 13 Feb 2020 22:28:53 -0800 Subject: [PATCH] Update src/mapreduce.jl Co-Authored-By: Chris Foster --- src/mapreduce.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mapreduce.jl b/src/mapreduce.jl index e871a8a6..f93f0928 100644 --- a/src/mapreduce.jl +++ b/src/mapreduce.jl @@ -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)