[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: print out all members of a list

From: Teemu Likonen
Subject: Re: print out all members of a list
Date: Mon, 28 Feb 2011 18:50:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2.94 (gnu/linux)

* 2011-02-28 10:20 (-0500), ken wrote:

> (car '("one" "two" "three"))
> prints out "one" ... the first of the list. How to print out all
> elements of the list (in order and with the double quotes around them?
> I'm actually looking just to substitute something for "car" and not
> write an entire function. Or is there no such thing?

CAR doesn't print anything, it _returns_ a value. I'm not sure what you
mean, maybe this:

    (identity '("one" "two" "three"))

IDENTITY just returns its argument. If you need some kind of
pretty-printing you could try PP function.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]