hi
not sure how to properly type the subject but here is the issue
pseudo code which i want to execute.
we have subroutine _sum
than list of dotted pairs lst
now i want to go thru this list (assoc) and look for SearchFor.
if founded than eval correct _sum
(defun _sum (a b) (+ a b))
(setq lst
(list
(cons "One" '(_sum 1 1))
(cons "Two" '(_sum 2 2))
(cons "Three" '(_sum 3 3))
)
)
(setq SearchFor "Two")
(if (setq res (assoc SearchFor lst))
(ok so (eval (cdr res)) to run (_sum 2 2))
(wrong)
)
hope it is clear
thanks
kruuger