Subject: Re: input/output
From: Erik Naggum <>
Date: 1996/03/24
Newsgroups: comp.lang.lisp
Message-ID: <>

[Kevin P Chugh]

|   hi - thanks to everyone who helped me with the function i needed - can
|   anyone tell me some standard input/output functions - i want to get
|   some keyboard input and i want to prompt the user for input - finally,
|   is there a way to concatenate two atoms - for example:
|   (myfunc 'a 'b)  returns 'ab

please consult your friendly Lisp manual, and look for ways to search the
help system.  `apropos' is a useful command.  also, you may find it useful
to browse the entire friendly Lisp manual to see what is available and
which names are used.  applying `apropos' to "read" and "write" should
help.  the Lisp manual should have a section on Input and Output.

as to your second question, the following will do what you say you want,
but you probably do not want what you say you want.

(intern (concatenate 'string (symbol-name 'a) (symbol-name 'b))) => AB
(intern (format nil "~A~A" 'a 'b)) => AB

BTW, functions do not return quoted symbols.  the quote is there to prevent
the evaluator from evaluating the symbol.

(I have this recurring "homework feeling".  please do not use the Net for
homework.  your teachers are paid to help you, and you are supposed to
study on your own, anyway.)

in my next life, I want to be my cat