From: Brian Adkins Date: 2008-04-19T12:30:04+09:00 Subject: Re: When are lambdas needed? On Apr 18, 5:13 am, p...@informatimago.com (Pascal J. Bourguignon) wrote: > Stedwick writes: > > I have seen many tutorials on the Internet explaining where lambdas > > CAN be used, such as clever multiplication functions, but when are > > they actually NEEDED? > > > Sure, I can take a lambda and "pass it around" so to speak, but I can > > call a function from anywhere too, right? > > > Can somebody give me an extremely useful, NOT complicated, example of > > when lambdas are the absolute perfect solution to a problem? > > Lambdas are anonymous function. > > As long as you can give a name to all the functions, they're not > needed, you can just define (ie. name) a function, and give that > function by name instead of using lambda. > > But that's the very point! One gets fed up in having to come with > names for ALL the little functions we can encounter in a program. So what is an eminent lisper doing posting on c.l.r - considering a switch? :)