hello, i need to write in a dotted pair a value of a variable
x1=50
(setq Props (list '("Prop1" . x1) ...
when i do that props is
(("Prop1" . x1)....
and i need to be
("Prop1" . 50)
how can I do?
|
hello, i need to write in a dotted pair a value of a variable
x1=50
(setq Props (list '("Prop1" . x1) ...
when i do that props is
(("Prop1" . x1)....
and i need to be
("Prop1" . 50)
how can I do?
Hi,
With the use of function cons you can build a dotted pairs.
Code:(setq x1 50) (setq Props (cons "Prop1" x1))