STRUCTS(2) Icon Program Library STRUCTS(2) NNNNAAAAMMMMEEEE structs - structure operations DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN These procedures for manipulating structures are taken from _T_h_e _I_c_o_n _P_r_o_g_r_a_m_m_i_n_g _L_a_n_g_u_a_g_e. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS ddddeeeepppptttthhhh((((aaaa)))) compute maximum depth of tree aaaa eeeeqqqq((((xxxx,,,,yyyy)))) compare list structures xxxx and yyyy llllddddaaaagggg((((ssss)))) construct a dag from the string ssss llllggggrrrraaaapppphhhh((((ssss)))) construct a graph from the string ssssggggrrrraaaapppphhhh llllttttrrrreeeeeeee((((ssss)))) construct a tree from the string ssss ssssttttrrrreeeeeeee((((aaaa)))) construct a string from the list aaaa ttttccccooooppppyyyy((((aaaa)))) copy tree aaaa tttteeeeqqqq((((aaaa1111,,,,aaaa2222)))) compare trees aaaa1111 and aaaa2222 vvvviiiissssiiiitttt((((aaaa)))) visit, in preorder, the nodes of aaaa NNNNOOOOTTTTEEEE The procedure llllddddaaaagggg has a second argument that is used on internal recursive calls; a second argument must not be sup- plied by the user. SSSSEEEEEEEE AAAALLLLSSSSOOOO Griswold, Ralph E. and Madge T. Griswold. _T_h_e _I_c_o_n _P_r_o_g_r_a_m_- _m_i_n_g _L_a_n_g_u_a_g_e, Prentice-Hall, Inc., Englewood Cliffs, New Jersey, 1983. pp. 170-180, 295. AAAAUUUUTTTTHHHHOOOORRRR Ralph E. Griswold Version 5.9 The University of Arizona - 4/26/83 1