Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why lambdas  RSS feed

 
Grega Leskovšek
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the main advantage of lambdas? Thanks, Gregor
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In this thread, Richard wrote:

Lambdas are best suited to situations where you want to write short, pure, simple methods and pass them around into other code.


I think that is a nice short answer. It lets you write concise simple code easily.
 
Richard Warburton
Author
Greenhorn
Posts: 22
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Grega Leskovšek wrote:What is the main advantage of lambdas? Thanks, Gregor


Hi Grega,

The same question was asked in another thread, so I'll link you to that answer:

http://www.coderanch.com/t/634939/java/java/Java-Lambdas-problems#2910792

Thanks for the question.

regards,

Richard
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!