Werner LEMBERG escreveu: >> another option is to use fold-left or fold-right (srfi-1 IIRC) to do >> the list looping > > Ok, here's another try. However, look how `result' is set in the > first `let' block -- what about adding safe-car and safe-cdr (on the > C++ level) which don't signal an error if its argument is the empty > list? The Elisp versions of car and cdr do this by default...
In scheme, it's less clear what such a function should return; #f (false) and '() (end of list) are distinct. Can you push this change after adding it to one of the markup regtests? -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen LilyPond Software Design -- Code for Music Notation http://www.lilypond-design.com _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel