- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I read a very interesting forum in https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/recursive-assoc-and-subst/m-p/782358...
where Gile gave an optimum explanation and a solution to a question regarding the search of associated values and the substitution of values in nested association lists.
Now I have a subsequente question, of how making from the scratch a nested association list, giving a key list and the final, nested value.
For example, if I want to assign to the variable al a nested association list (setq al '(("GRP1" ("A" (2 (21 . "b")))))) is it possible to construct a recursive function of the tipe (MAKEORSUBST (list "GRP1" "A" 2) '(21 . "b"))
In addition, if I have fixed the preceding value for al and I want to add a new value (22 . "c") to the inner value (21 . "b") with the last key 2, can I obtain the result with a command of type (MAKEORSUBST (list "GRP1" "A" 2) '(22 . "c"))?
I have made numerous attempts to construct such a function on the basis of the functions provided by Gile in that forum, but with no results.
Please, can Gile himself or someone other give me a help?
Thanks in advance
Solved! Go to Solution.