Hello! I need help here.
The code I wrote:
setq mylist nil
setq a 3.5
setq b 4.2
setq str "test"
(cons (format nil "((a: ~f) (b: ~f) (mystring: ~a))" a b str) mylist)
setq a 5.6
setq b 7.8
setq str "hello"
(cons (format nil "((a: ~f) (b: ~f) (mystring: ~a))" a b str) mylist)
(print mylist)
I want to get a list with two elements like (((a: 3.5) (b: 4.2) (mystring: test)) ((a: 5.6) (b: 7.8) (mystring: hello))).