Hello fellows,
I am looking for a solution to update the sublist in a sublist that in another sublist...
The structure of the list looks like this:
1.
1.1
1.1.1
1.1.1.1
1.1.1.2
1.1.1.3
......
1.1.2
1.1.2.1
1.1.2.2
1.1.2.3
......
......
1.2
1.2.1
1.2.1.1
1.2.1.2
1.2.1.3
......
1.2.2
1.2.2.1
1.2.2.2
1.2.2.3
......
......
......
2.
2.1
2.1.1
2.1.1.1
......
......
......
......
This structure may contain more than 4 sub-lists and I want to write a general function,Lets say (defun substADV (list n newitem) ...)
What I want to achieve is if I call (substADV list 2 "test") then all sublist (or item) 1.1, 1.2, ... 2.1, ... 3.1,... and the like will become "test". And if I call (substADV list 3 "test") then all 1.1.1, 1.1.2, ... 1.2.1,... 1.3.1 will be updated to "test".
Can anyone guide me how to write a function to make this work? Thank you very much.