I have worked on Lambda functions in Jython. It's a very cryptic code that achieves something which requires lengthier code.
When I had a first look at Java 8 Lambda expression, it is also very similar to Jython's lambda function.
I need to deep dive, I am at surface level.
But, is my understanding correct?
Gurumurthy Ramamurthy wrote:But, is my understanding correct?
Not sure what you're asking. Understanding of what? That lambda expressions can be cryptic? Sure, they can be cryptic, especially if you're unfamiliar with them. Context is important in understanding what a lambda expression is doing so try to keep lambdas in surrounding code that gives proper context.
The best ideas are the crazy ones. If you have a crazy idea and it works, it's really valuable.—Kent Beck