From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: [SOLVED] Re: sxml: avoiding intermixed text? Date: Thu, 13 Jan 2011 11:53:41 +0100 Message-ID: <87tyhdhy6i.fsf@ambire.localdomain> References: <4D2AEBCA.8060506@gmail.com> <4D2ED83E.4000008@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1294916370 27864 80.91.229.12 (13 Jan 2011 10:59:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Jan 2011 10:59:30 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jan 13 11:59:26 2011 Return-path: Envelope-to: guile-user@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 1PdKtp-0003uF-SY for guile-user@m.gmane.org; Thu, 13 Jan 2011 11:59:26 +0100 Original-Received: from localhost ([127.0.0.1]:45804 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdKtp-0006j9-5g for guile-user@m.gmane.org; Thu, 13 Jan 2011 05:59:25 -0500 Original-Received: from [140.186.70.92] (port=57839 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PdKtW-0006if-Rk for guile-user@gnu.org; Thu, 13 Jan 2011 05:59:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PdKtV-0004kN-8G for guile-user@gnu.org; Thu, 13 Jan 2011 05:59:06 -0500 Original-Received: from smtp207.alice.it ([82.57.200.103]:52422) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PdKtV-0004k3-0z for guile-user@gnu.org; Thu, 13 Jan 2011 05:59:05 -0500 Original-Received: from ambire.localdomain (95.244.66.177) by smtp207.alice.it (8.5.124.08) id 4C9E16C908C41104 for guile-user@gnu.org; Thu, 13 Jan 2011 11:59:02 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1PdKoI-0003M1-C3 for guile-user@gnu.org; Thu, 13 Jan 2011 11:53:42 +0100 In-Reply-To: <4D2ED83E.4000008@gmail.com> ("Aleix Conchillo =?utf-8?Q?Flaq?= =?utf-8?Q?u=C3=A9=22's?= message of "Thu, 13 Jan 2011 11:47:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8358 Archived-At: () Aleix Conchillo Flaqu=C3=A9 () Thu, 13 Jan 2011 11:47:26 +0100 I'm new to scheme, so a code review is really welcome! I would replace (let loop ((node sxml) (result '())) (cond ((null? node) result) (else (loop (cdr node) (append result (node-fix (car node))))))) with (map node-fix sxml)