• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Lambda

 
Ranch Hand
Posts: 47
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your book have deep explanation about lambda expressions?
 
Marshal
Posts: 79178
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What do you mean by “deep”. It doesn't (at least not in the parts I Have read) describe their history or Church's theory. Lambdas are actually something which is obscure in maths, but much better known in computer sciences.
 
Author
Posts: 26
12
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Carlos,

We cover lambda expressions in details. Our book has one chapter introducing the motivation for lambda expressions (chap 2) and another one that shows how they can be used in your code (chap 3). We also cover some subtleties such as certain restrictions (e.g. lambdas can't mutate local variables) and how to combine lambda expressions (e.g. combining two predicates or composing two functions). In addition, we have another chapter (chap 7) that shows how several verbose object-oriented design patterns can be refactored to be more concise using use lambda expressions.

Of course we don't discuss the lambda calculus [1] (where the term lambda comes from) as this is not helpful to get you to adopt lambda expression in your code.

[1] http://en.wikipedia.org/wiki/Lambda_calculus
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic