@Marc
Yes, I posted the version I use for experimenting ..
Still works in this situation
.. though this may suit the OP better
(defun kdub:replace
-assocVal
(tag val lst
) )
@efernal
Yes, I ignored the OP's key naming was using SYM's for the key ... my bad!
If he really wants to define the assoc list like that then a different function will need to be crafted as you have done.
Fortunately, this still works :
(setq wallinfo
(KDUB:replace
-assocVal 'len
280.0 wallinfo
) ;or
(KDUB:replace
-assoc 'len
280.0 'wallinfo
)
@mailmaverick
Did you mean to assign the key values as Symbols like that ??