[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SOLVED] Re: sxml: avoiding intermixed text?
From: |
Thien-Thi Nguyen |
Subject: |
Re: [SOLVED] Re: sxml: avoiding intermixed text? |
Date: |
Thu, 13 Jan 2011 11:53:41 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
() Aleix Conchillo Flaqué <address@hidden>
() 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)