subscripted functions as arguments



(sorry for the multiple messages, a cat is to blame... anyway)

consider the following example

foo[j] (x) := j * sin (x)$

arrayinfo (foo);

-> [hashed, 1, [j]]

checkfoo (fun, idx, var) :=
  arrayinfo (fun)$

checkfoo (foo, j, [x]);

-> arrayinfo: fun is not an array.

When dealing with regular functions as arguments, as opposed to subscripted
ones, I have been able to circumvent difficulties within a function
definition by calling 'funmake (foo, var)'.

What I would like to accomplish is to define a function that operates on
subscripted functions. It is important, however, that the user be able to
specify a list of indices separately from a list of variables, because the
former is of unknown length and its first and last elements have special
significance. Composing 'arraymake' with 'funmake' does not seem to do the
trick.


Thank you in advance.

Cheers,

Manuel GJT


On Mon, Oct 28, 2013 at 4:34 PM, MGJT <valhifi at gmail.com> wrote:

> Dear maxima list,
>
>
> I would very much appreciate your help in elucidating the intricacies of
> passing a subscripted function as an argument.
>
>
>