From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: Re: print out all members of a list, v.1.0 Date: Mon, 28 Feb 2011 22:02:17 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <4D6BBD34.6050407@mousecar.com> <4D6BD989.9010102@mousecar.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1298962168 1706 80.91.229.12 (1 Mar 2011 06:49:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 1 Mar 2011 06:49:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 01 07:49:23 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PuJOU-0002zo-89 for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 07:49:23 +0100 Original-Received: from localhost ([127.0.0.1]:48275 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuJOK-00026i-VX for geh-help-gnu-emacs@m.gmane.org; Tue, 01 Mar 2011 01:49:05 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!o18g2000prh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 68 Original-NNTP-Posting-Host: 116.73.35.230 Original-X-Trace: posting.google.com 1298959527 4129 127.0.0.1 (1 Mar 2011 06:05:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 1 Mar 2011 06:05:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o18g2000prh.googlegroups.com; posting-host=116.73.35.230; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185459 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79610 Archived-At: On Feb 28, 11:25=A0pm, ken wrote: > Ughhh. =A0Finally, after reading many, many info pages and running a doze= n > or so google searches and reading four or five that many web pages over > the past couple days, I found what I was after... mapconcat. =A0Still the= n > it took a bit of reading error messages and playing around with syntax, > but it's working. =A0All that for one line of code! Learning a new language is often most frustrating in the simplest aspects. Use this list/group earlier next time! > > I've programmed in a lot of languages over the decades, but elisp > definitely has the steepest learning curve... prolly cuz it's so > hodge-podgey. yes it is. emacs lisp became obsolete when scheme and common lisp came out -- which is about 30 years ago. And its still the most commonly used lisp. Go figure! > Well, this isn't a discussion I have time for. =A0I'm just > sayin', if not for emacs, elisp would be gone... and it might be gone > anyway in a generation or two. =A0I'll leave it to those who know the > language better than I to if/how to prevent that happening. > > On 02/28/2011 12:21 PM ken wrote: > > > On 02/28/2011 10:20 AM ken wrote: > >> (car '("one" "two" "three")) > > >> prints out "one" ... the first of the list. =A0How 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. =A0Or is there no such thing? > > >> Thanks much. > > > I've been criticized for my elisp terminology-- and properly so--, so > > let me rephrase: > > > (car '("one" "two" "three")) > > > returns a string consisting of the first element (?) of the list. =A0Is > > there an elisp function which either (1) returns one string for each > > element of the list or (2) returns one string containing all elements o= f > > the list? > > > E.g.: > > > (1) "one" "two" "three" > > > or > > > (2) "onetwothree" > > > preferably (1). > > > Thanks again. > > > P.S. It seems strange that elisp has so many ways to manipulate lists, > > but doesn't seem to have this very simple functionality. > >