lambda (x) (car x) is exactly the same as car. You should be able to write just #(map car all-grob-descriptions) instead.
2013/10/1 Urs Liska <u...@openlilylib.org> > Am 01.10.2013 12:04, schrieb David Kastrup: > > Urs Liska <u...@openlilylib.org> writes: >> >> Am 29.09.2013 17:04, schrieb David Kastrup: >>> >>>> \new Voice \with { \mapList #colorizeDir Slur.StringNumber.TextScript } >>>> >>> \new Voice \with { \mapList #colorizeDir #(map (lambda (x) (car x)) >>> all-grob-descriptions) } >>> >>> Adds the option of coloring all grobs with a 'direction property. >>> >> I cringe whenever I see something like (lambda (x) (car x)). You are >> aware that this is just an obfuscated version of car itself? >> >> No. But I'm ready to learn. > What I want to achieve here (with the map) is a list of all cars of > all-grob-descriptions. > > > #(map (lambda (x) (car x)) all-grob-descriptions) > > gives me what I want. So what would I have to do to make it cleaner/less > obfuscated? > > Urs > > > ______________________________**_________________ > lilypond-user mailing list > lilypond-user@gnu.org > https://lists.gnu.org/mailman/**listinfo/lilypond-user<https://lists.gnu.org/mailman/listinfo/lilypond-user> >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user