First of all, I would like to mention that I have enjoyed reading your book.
I had a small doubt. Please refer Chapter 6 Lazy Evaluations. 1. Here it is mentioned that “..compiler evaluates lambda expressions/method references in the argument list at the called location. The invocation of these, however, is postponed until they are explicitly called from within the methods they’re passed to.
- But while explaining lazyEvaludator, it is mentioned that “..if we pass two calls to evaluate as arguments to the lazyEvaluator method, the second will be evaluated only if the first call returned a boolean true.” Did you mean that the second will be invoked (as against evaluation) only if 1st returns true. Or may be you can elaborate more about evaluation at called location…
Thanks & Regards.