[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Nov 30 17:22:30 1995 
Subject:Trees 
From:L Parnell 
Volume-ID:951130.01 

Hiya!

I have a tree represented by a list of lists.
I want to modify any subtree.
I represent location of the subtree by a path from the root.

eg if path is [2 1 3]
   i want to do
   newsubtree->tree(2)(1)(3);

How can I do this for any tree<path1,path2,...,pathn> ?

is there a clever way to do this, without rebuilding the tree.

Yours,
Liam Parnell.
lxp@mother.cs.bham.ac.uk