Question: Is this a bug for a function?

Is this a bug?

eq:=5*x+y-10=0:
eq2:=y=solve(eq,y):

f:=(x,y)->eq2
                              
f(3,1)
                   

I think the way I applied it above is a bit unorthodox to Maple but maybe it is a bug.  Normally I think we use unapply in this situation. 

f:=unapply(eq2,x,y)
                             
f(3,1)
                     

Okay better, but I think that first way should work no?

 

Please Wait...