Question: The code below fails, because one of the arguments is a vector. 1 @show x , y , z = 1 , [ 2 ]

The code below fails, because one of the arguments is a vector.
1 @show x,y,z=1,[2],3
2h(x,y,z) # oops, the middle argument is a vector!
Revert
Code errored (766ms)
(x,y,z)=(1,[2],3)=(1,[2],3)
LoadError: MethodError: no method matching h(::Int64,
::Array Int64,1}, ::Int64)
MethodError: no method matching Array Int64,1}, ::Int64)
closest candidates are:
h (: :Number, !Matched: :Number, : :Number) at In [3]:12
Stacktrace:
[1] top-level scope at In[5]:2
[2] include_string(::Function, ::Module, ::String, ::String) at
./loading.jl:1091
 The code below fails, because one of the arguments is a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!