I have the below list, ive been scratching my head with no joy about how to do this.
I need to iterate through the list and create a treemap in opendcl to display the list structure visually. I can then go on to create a dictionary structure to save the data.
The following is just an example but each of the nested lists can have an unspecified number of lists and each with a different depth so i dont think a nested foreach is suitable/possible??
Can someone point me in the right direction....
(setq lst '("P1"
("Data" ("D1")("D2")("D3" ("D3-1" "D3-2" ("X"))))
("Stru" ("Ft1")("Ft2" ("Ft2-1")))
("Rom-A" ("Flr-1" ("East" ("A" "B" "C"))("West" ("A" "B"))("South"("D" "E"))("North" ("A" "F" "G"))))
("Rom-B" ("Flr-1" ("East" ("A" "B" ("C" "T")))("West" ("A" "B"))("North" ("A" ("F") "G"))))
("Rom-C" ("Flr-1" ("East" ("A" "B" "C"))("South"("D" "E"))("North" ("A" "F" "G"))))
)