Question: Function with index/list

Hello, I'm trying to build a function of two variables which has also and index that will be useful later when I will substitue indexed varaibles

f[i] := (x,y) -> a[i]*x + b[i]*y;
f[3](x,y)  -------> expecting: 
a[3]*x + b[3]*y , but it gives f3(x,y)

 

Any suggestion?

 

Please Wait...