On Thu, Aug 14, 2008 at 2:16 PM, Valentin Villenave <[EMAIL PROTECTED]> wrote:
>> This requires you to use lambda expressions, which are kind of confusing. > > Are lambda expressions related to > http://en.wikipedia.org/wiki/Lambda_calculus? > > If so, I have to confess I kinda gave up every time I tried to read > the Wikipedia page... :( > >> If you're going to do scheme programming with lilypond, lambda functions >> are your friends, even though they can be confusing. > > I'll try harder then... Lambda calculus is the reason that lambda is called like that, but it is as bad a name as cons/cdr/car. Scheme is a cleaned up version of LISP, but they left those warts in. Just think (function (x) (display x)) for (lambda (x) (display x)) You can define the print function (define print (lambda (x) (display x)) is usually expressed with the following syntactic sugar: (define (print x) (display x)) -- Han-Wen Nienhuys - [EMAIL PROTECTED] - http://www.xs4all.nl/~hanwen _______________________________________________ lilypond-user mailing list [email protected] http://lists.gnu.org/mailman/listinfo/lilypond-user
