unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-user@gnu.org
Subject: Re: [SOLVED] Re: sxml: avoiding intermixed text?
Date: Thu, 13 Jan 2011 11:53:41 +0100	[thread overview]
Message-ID: <87tyhdhy6i.fsf@ambire.localdomain> (raw)
In-Reply-To: <4D2ED83E.4000008@gmail.com> ("Aleix Conchillo Flaqué"'s message of "Thu, 13 Jan 2011 11:47:26 +0100")

() Aleix Conchillo Flaqué <aconchillo@gmail.com>
() 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)



  reply	other threads:[~2011-01-13 10:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-10 11:21 sxml: avoiding intermixed text? Aleix Conchillo Flaqué
2011-01-13 10:47 ` [SOLVED] " Aleix Conchillo Flaqué
2011-01-13 10:53   ` Thien-Thi Nguyen [this message]
2011-01-13 11:20     ` Aleix Conchillo Flaqué

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tyhdhy6i.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).