How to search for an atom in another atom

From: Christian Soltenborn (no_spam_csoltenborn_at_webmail.de)
Date: 01/25/04


Date: Sun, 25 Jan 2004 16:53:32 -0600

Hi folks,

I just started to learn Lisp, and I have a small question: I have to
write a function which checks if an atom is contained in another atom.
For example:

>(setf expr 'xyz)
XYZ
> (checkp 'x expr)
T
>(checkp 'a expr)
NIL

Unfortunately I have no clue how I can access the single "chars" of an
atom. And it is kind of hard to find this information if you don't know
for which function to search. Could somebody give me a hint?

Thanks in advance,
Christian



Relevant Pages

  • Re: Lisp in C.
    ... struct node *cdr; ... However this is a waste because if a node is an atom then cdr and car ... but with the high-level logic written in Lisp. ...
    (comp.lang.lisp)
  • Re: Whats ANSI Up To?
    ... and ATOM? ... Perhaps a beginner such as self should take it as a challenge ... you will actually be able to tell from a name in which decade it was added to Lisp. ... Common Lisp Document Repository: http://cdr.eurolisp.org ...
    (comp.lang.lisp)
  • difficulties to understand the atom concept
    ... (while learning cl). ... In my eval function, I check if the form I receive is an atom. ... I guess there something intern to lisp that can't be shown otherwise ...
    (comp.lang.lisp)
  • Re: How to search for an atom in another atom
    ... Christian Soltenborn writes: ... > atom. ... You've been reading docs from the ancient days of Lisp. ... normal to use symbols as strings any more. ...
    (comp.lang.lisp)
  • Re: Where to find good lisp critiques?
    ... > I'm not trying to make this a lisp vs. scheme pissing contest. ... > comments are more in the context of, "Hey this is something nice to ... The first argument to defun already doesn't have to be an atom in Common ...
    (comp.lang.lisp)