Saving a list of variables
Posted: Fri Sep 21, 2012 6:39 pm
How can you get input from a user and save that data in a list. e.g.
(format t "First question?")
(let ((firstQuestion (read-line)))
//second question
(let ((secondQuestion (read-line)))
//third
(let ((thirdQuestion (read-line)))
(setq allQuestions '(firstQuestion secondQuestion thirdQuestion))))
so that just gives me a list of those words and not the actually valuse they hold.
Thanks
(format t "First question?")
(let ((firstQuestion (read-line)))
//second question
(let ((secondQuestion (read-line)))
//third
(let ((thirdQuestion (read-line)))
(setq allQuestions '(firstQuestion secondQuestion thirdQuestion))))
so that just gives me a list of those words and not the actually valuse they hold.
Thanks