Concerning custom indexing functions it seems that there is nothing analogous to TypeTools:-AddType(...), with which you can define new types as
TypeTools:-AddType(name,handler);
where, most importantly, name may be a variable. How can something similar (i.e., the name being given by a variable) be accomplished for new indexing functions when the only available option for defining those seems to be something like
`index/name` := proc()
   # something
end proc;
where name cannot be a variable?

Please Wait...