[top][index]
search for:

browse -- browse the contents of an object

browse x -- provides an interactive mechanism which allows the user to explore the hash table or list x.

A menu of numbered items is presented to the user which allow the user to inspect the class or parent of x. For a hash table, the keys are presented so the user can visit the corresponding values, and for a list, the entries are presented so the user can visit them. One of the menu items allows the user to go back to re-examine the previous item.

Code:

     -- ../../../Macaulay2/m2/browse.m2:130-132
     browse = x -> (
          s := (x,null);
          while null =!= (s = menu s) do ( ))

[top][index]
search for: