Question: problem with @ operator and subscripted variables

Note first that @ works as designed for a function named f: restart: > f:=x->x+a: > (f@f)(x); x + 2 a But if I name the function f[1] it doesn't work. > restart: > f[1]:=x->x+a: > (f[1]@f[1])(x); (2) ((f[1]) )(x) On the other hand if I have two functions named, respectively, f[1] and f[2] then it does work. > f[2]:=x->x+b: > (f[1]@f[2])(x); x + b + a Is this a bug? Or am I missing something? --Edwin >
Please Wait...