@@ -1795,9 +1795,11 @@ if VERSION < v"0.7.0-DEV.4064"
17951795 reduce (op, a, dims= dims, init= v0)
17961796elseif VERSION < v " 0.7.0-beta.81" # julia#27711
17971797 mapreduce (f, op, a:: AbstractArray ; dims= nothing , init= nothing ) =
1798- init === nothing ? Base. mapreduce (f, op, a; dims= dims) : Base. mapreduce (f, op, init, a; dims= dims)
1798+ init === nothing ? (dims=== nothing ? Base. mapreduce (f, op, a) : Base. mapreduce (f, op, a, dims= dims)) :
1799+ (dims=== nothing ? Base. mapreduce (f, op, init, a) : Base. mapreduce (f, op, init, a, dims= dims))
17991800 reduce (op, a:: AbstractArray ; dims= nothing , init= nothing ) =
1800- init === nothing ? Base. reduce (op, a; dims= dims) : Base. reduce (op, init, a; dims= dims)
1801+ init === nothing ? (dims=== nothing ? Base. reduce (op, a) : Base. reduce (op, a, dims= dims)) :
1802+ (dims=== nothing ? Base. reduce (op, init, a) : Base. reduce (op, init, a, dims= dims))
18011803end
18021804if VERSION < v " 0.7.0-DEV.4534"
18031805 reverse (a:: AbstractArray ; dims= nothing ) =
0 commit comments