how to create a list in LISP and accepting elements of list from user?
Use the read
function to read user input. For example:
[6]> (list (read) (read))
joe
moe
(JOE MOE)
joe
and moe
are my input lines, terminated by a newline (pressing Enter). The list
function creates a new list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With