From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: adding a string to every element in a list Date: Sun, 16 Nov 2008 22:54:14 -0800 Message-ID: <002801c94881$4dbbbca0$0200a8c0@us.oracle.com> References: <1226901075.25203.2782.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1226904901 21719 80.91.229.12 (17 Nov 2008 06:55:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Nov 2008 06:55:01 +0000 (UTC) To: "'Matt Price'" , "'help-gnu-emacs'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 17 07:56:02 2008 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.50) id 1L1y1i-0002NR-3X for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 07:56:02 +0100 Original-Received: from localhost ([127.0.0.1]:47700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1y0Z-0006B2-SC for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Nov 2008 01:54:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1xzo-00060u-I3 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 01:54:04 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1xzm-00060N-W3 for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 01:54:04 -0500 Original-Received: from [199.232.76.173] (port=33276 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1xzm-00060I-Qm for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 01:54:02 -0500 Original-Received: from rcsinet12.oracle.com ([148.87.113.124]:34004 helo=rgminet12.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L1xzm-0001nf-Hk for help-gnu-emacs@gnu.org; Mon, 17 Nov 2008 01:54:02 -0500 Original-Received: from acsinet13.oracle.com (acsinet13.oracle.com [141.146.126.235]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAH6rpVS004491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 17 Nov 2008 06:53:52 GMT Original-Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70]) by acsinet13.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAH6sAdr021683; Mon, 17 Nov 2008 06:54:11 GMT Original-Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 17 Nov 2008 06:53:55 +0000 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1226901075.25203.2782.camel@localhost> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AclIeKbjfJmz/3D+R4uBj0TfexMSnwACGsRA X-Source-IP: acsmt700.oracle.com [141.146.40.70] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090204.49211505.006E:SCFSTAT928724,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:59855 Archived-At: > it's not obvious to me how i would do something as simple as iterating > through the elements of a list, modifying each element in hte > same way. mylist = ["a" "silly" "list"] > and the new list would be ["aADD" "sillyADD" "listADD"] C-h f mapcar