Substitutions in Common Lisp
I’m trying to write a function with two arguments of this type: substitutions (list_one, list_two) list_one has always this form (letters can change according to the input): (1 ((1 2 ((1 2 r) (3 2 t) (4 3 c))) (3 4 ((5 6 y) (5 7 i))))) list_two has always this form (numbers can change according to the input): (2 3 4 5 6) I want to substitute in this way: r-> 2 t -> 3 c -> 4 y -> 5 i -> 6 Can you help me please? A not so efficient solution is to first find a list of all the letters in the fist tree structure (the first list) and then to LOOP over the results calling SUBST repeatedly. To find