Next: Procedure execution Up: New and enhanced Previous: Sequences and for

Table and array entries

Arrays and tables can now be descended (picked apart) using the op function. (Hence the only objects in Maple now which cannot be descended are procedures.) In addition to the indices function (which computes a sequence of a tables indices (keys)) the entries function computes a sequence of a tables entries. Example:


    > t := table([red = rot, blue = blau, yellow = gelb, grey = grau]):
    > indices(t);
                        [blue], [yellow], [grey], [red]
    > entries(t);
                         [blau], [gelb], [grau], [rot]
    > op(op(t));
              [blue = blau, yellow = gelb, grey = grau, red = rot]


bondaren@thsun1.jinr.ru