Jan Nieuwenhuizen <jann...@gnu.org> writes: > bigcab writes: > >> (define function-value-list >> (('duration . ((lambda(x) (ly:duration-log x)))) > > What are you trying to achieve by doing (lambda (x) (foo x))? > >> ('step . ((lambda(x) (ly:pitch-notename x)))) >> ('test . ((lambda(x) (begin (display "salut :") >> (display x) (display ".\n"))))) >> ('octave . ((lambda(x) (ly:pitch-octave x)))))) > > You probably want something like > > (define function-value-list > `((duration . (,ly:duration-log)) > (step . (,ly:pitch-notename)) > (test . (,lambda (x) (begin (display "salut: ") ...))) > ...))
The begin form seems sort of pointless as a top level part in lambda. -- David Kastrup _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel