function multi_sum_6(x,y,z)
total = sum(filter(i -> ((i % x == 0) | (i % y == 0)), [1:z]))
return(total)
end
I am getting the following warnings with my function (Project Euler) . When
I run the separate lines I do not get the following warning, but get the
exact answer. It is only when I place this expression within a function do
I get the warning.
WARNING: [a] concatenation is deprecated; use collect(a) instead
in depwarn at deprecated.jl:73
in oldstyle_vcat_warning at abstractarray.jl:29
in multi_sum_6 at In[112]:2
in include_string at loading.jl:266
in execute_request_0x535c5df2 at
C:\Users\jmbyars\.julia\v0.4\IJulia\src\execute_request.jl:182
in eventloop at C:\Users\jmbyars\.julia\v0.4\IJulia\src\IJulia.jl:142
in anonymous at task.jl:447
while loading In[112], in expression starting on line 5