How to update a list managed with "lookup"?
Posted: Wed Jul 29, 2009 10:10 am
				
				Hello,
I have this list:
I use (lookup) to check data in that list. For example:
Well, after I found a value associated to a key (node), how can I quickly update that node)? Is there any way to use something like a (lookup)?
For example:
In this way I'm not "extracting data from the node, but I will update the value with a new one (replace).
Thank you.
			I have this list:
Code: Select all
(setq myScheduler '(
(at 
  ( 
   (days 1 7 14 21)         ;; Scheduler per i giorni 1, 7, 14, 21
   (times "11:00" "23:00")  ;; Alle ore 11:00 e ore 12:00
  )
)
(client-nodes 
  (
   ("10.100.2.12"  3322)
   ("10.100.3.198" 1234)
  )
)
))
Code: Select all
(lookup 'client-nodes myScheduler)For example:
Code: Select all
(lookup 'client-nodes myScheduler NEW_NODE_VALUE)
Thank you.