lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Harp Pedals?


From: Han-Wen Nienhuys
Subject: Re: Harp Pedals?
Date: Sat, 16 Aug 2008 02:46:31 -0300

On Thu, Aug 14, 2008 at 2:16 PM, Valentin Villenave
<address@hidden> 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 - address@hidden - http://www.xs4all.nl/~hanwen




reply via email to

[Prev in Thread] Current Thread [Next in Thread]